1

lftp script to connect to external sftp site and download to internal ftp and then send email

view story
linux-howto

http://www.unix.com – Hi there, I'm new to shell scripting and need some help if possible? I need to create a shell script (.sh) to run as a cron job on an ubuntu linux server to connect to an external sftp sites directory using credentials (which I have) and then download to our internal ftp server and then copy off to another share which is an archive location. I would like to remove the files from the external sftp site after the data has been downloaded successfully. After the above is complete we need the script to send a notification email showing the list of file names that have been downloaded. I have (HowTos)