Hi All
I have created a script which will email output if the file contains data, this works.
But when the file contains 0 data, it tries to email but hangs, when i hit ctrl D, it ask for Cc: address, i then cancel this then it emails me out.
Anyway i can get it to stop hanging and waiting for user intervention???
if [ $filesize -gt 0 ]
then
mailx -s "$subject $day" $destination < $filename
else
mailx -s "$subject2 $day" $destination
fi