The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 01-24-2007
happyv happyv is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 209
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