I'm writing a bash script to download a logfile from a site, archive it, then upload the archive to the site. I want the script to stop if the file doesn't download correctly, and I think I've accomplished this. (i.e. it works right when I set it up to download a non-existent file.) Question: will ftp always return an error if the file is downloaded incorrectly or incompletely? This is important, because the last part of the script will replace the file on the ftp server with a blank file of the same name. I don't want to wipe out the original logfile if I don't have it all. (secondary question: Is there a way to pass the "delete" argument without using the interactive shell?) Here's what the first section of the script looks like. Third question: If I set this up to run as a cron job, what happens to my echo messages? Will they appear in /var/log/messages? #download logfile if ftp ftp://user:password@ftp.site.net/logfile.log; then echo echo "File has been downloaded" echo else echo "Download failed" exit fi Thanks, Greg