FTP script help
need help to write a script to ftp a file and get an email confirmation or failure sent out.
|
Hi,
What have you tried and which problems did you encounter? Any details? We are willing to help, but I don't think you can expect us to deliver a script/program from scratch :) |
Have the ftp working need to know how to send an email to let me know if it succeeded or not. Here is the script so far:
#!/bin/ksh HOST='xxx.xxx.xxx.xxx' USER='username' PASSWD='passwd' ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD cd /directory prompt mput file.txt quit END_SCRIPT exit 0 |
I would like to send email using mutt as well, if possible.
|
Hi,
I don't use mutt, but this will give you an idea (I hope): Code:
#!/bin/bash Hope this helps. |
Thanks, I'll test it out and let you know how it goes.
|
All times are GMT -5. The time now is 06:34 AM. |