http://qs321.pair.com?node_id=548720


in reply to get md5 sum of a remote file via net::ftp / net::sftp

If the remote machine has the 'md5' command you could ssh into the machine and run the md5 command on the specified files. If not you could write your own md5-ing perl script (using examples above), and run that on the remote machine (if you can write files there).

I'd use Expect to script the ssh-ing and running 'md5'.