Hi,
I have a FTP shell script which is used to move the file from linux server to Windows FTP machine.Here my problem is some times because of network problem the files are not moving to FTP .Here i want to get the mail weather the files are moved to ftp is success or not when the CRONTAB fires to move those file to FTP.Can any one please help .
Here is my shell script
HOST='192.168.2.85'
USER='dump'
PASSWD='und08!'
#FILE='*'
#DT=$(date +%a_%h_%d_%Y)
DT=$(date +%Y-%m-%d)
ftp -n $HOST > .ftpout.txt 2>.ftperr.txt <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
#lcd /home/oracle/test
lcd /u03/ACADATAEXTRACT/
cd qfund-datawarehouse
mkdir $DT
cd $DT
prompt
mput *
quit
END_SCRIPT
exit 0