Quote:
|
Originally Posted by anbu23
Its working for me.Check whether you have missed brace in your script
|
May be I added mailx into.. can you help?
awk ' /is missing/ { flag=1;print > "baby_missing.txt" }
mailx -c "`cat ccfile.txt`" -s \'"Missing tap file status $today'" "`cat tofile.txt`" < missing.msg
END {
if( flag != 1 )
print "no file is missing in system" > "baby_nomissing.txt"
} ' baby.txt