OsakaWebbie
Programmer
I made a cron script to do some backups and FTP them offsite. Everything is running fine, but I still get an email with "Interactive mode off." Here is the relevent part of my script:
I don't want to send the whole output to /dev/null or something, because I want to be notified if there are errors. But I also don't want this useless email every night. I tried just doing "prompt off > /dev/null", but it didn't shut it up. Suggestions?
Code:
ftp -n $REMOTESERVER <<INPUT_END
quote user $LOGIN
quote pass $PASSWORD
prompt off
put myfile1.tar.gz
put myfile1.tar.gz
exit
INPUT_END