Linux Shell Script To Ftp File To Server
You need to create a shell scrip, needed to call from a crontab, to contact a FTP server and put or get a file. You will need to modify the variable section to reflect your settings. —————————————- #!/bin/bash HOST=ftp.server.com #This is the FTP servers host or IP address. USER=ftpuser #This is the FTP user that has access to the server. PASS=password #This is the password for the FTP user. # Uses the ftp command with the -inv switches. -i turns off interactive prompting. – Restrains FTP from attempting the auto-login feature. -v enables verbose and progress. ftp -inv $HOST