Quote:
Originally Posted by mk1216
if [ ! -z $PRECHECK ] && [ $PRECHECK == "FALSE" ]
then
echo "File Ftped Successfully: " $f
mv $f "FTPED_"$f
fi
|
Thank you very much.It worked...
I assume [ ! -z $PRECHECK ] means does the variable precheck exist??
One more thing is that I need to email the file log contents to a user.
I am using the code below:
Code:
cat $SESSIONLOG|mailx -s "Alert created on $DATERUN : Transaction date is $DATERUN : Interface failure from RCUK to BottomLine " $EMAILADD
Is it correct? I don't seem to get any emails....