JTUNIXUSER
MIS
I'm trying to get a logfile created of my FTP when it runs in my script so that I can validate the transfer each day. The problem is that the file is created, but nothing is in it and I know my FTP is working. So why no data in my log file ? Here is the code, any help is appreciated....
!/bin/sh
if [ "`cat $OUTF | wc -l`" -gt 0 ]; then
### FTP of File
ftp -n $FTP_HOST<<END_SCRIPT>>$OUTLOG
quote USER $FTP_USER
quote PASS $FTP_PASSWD
ascii
quote site SID=$SENDER,FNM=$FILENAME,BLKSIZE=93,LRECL=93
put $OUTFTP /$SENDER/$RECEIVER/$MAILBOX/$OUTFTP
quit
END_SCRIPT
fi
!/bin/sh
if [ "`cat $OUTF | wc -l`" -gt 0 ]; then
### FTP of File
ftp -n $FTP_HOST<<END_SCRIPT>>$OUTLOG
quote USER $FTP_USER
quote PASS $FTP_PASSWD
ascii
quote site SID=$SENDER,FNM=$FILENAME,BLKSIZE=93,LRECL=93
put $OUTFTP /$SENDER/$RECEIVER/$MAILBOX/$OUTFTP
quit
END_SCRIPT
fi