Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using a short lftp script on cron to download files after they are uploaded to an ftp server.

lftp -u user,pass sftp://server:port -e 'mget -c -E path/to/file/*.zip -O "/path/to/download/destination/"'

I have sendmail configured corrently and want to use it to send an email after the transfer is complete, but I can't figure out how to get the error codes to work, it appears it returns the same code regardless of whether it returns a file.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.