How can I make a script that once a day will upload a file via ftp to several different servers and then write (in the log) how long it takes to download?
Thanks to Rajax, I have cronjob installed to execute this with a script, suppose it is called ftpScript.sh:
#!/bin/sh
HOST='ftp.users.qwest.net'
USER='MYUSERNAME'
PASSWD='MYPASSWORD'
FILE='filename.gif'
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE
quit
END_SCRIPT
exit 0
Where can I place this part?
time -a output.log ftpScript.sh
source
share