The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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




Thread: size of a file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-28-2008
ali560045's Avatar
ali560045 ali560045 is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 328
script help

i have a script called mail1
------------------------------------------

#!/bin/ksh

set --`cd /`

count=0
count=`cat var/spool/mail/pipe | grep "From MAILER-DAEMON" | wc -l`

echo $count

-----------------------------------------------------------------------

actually this script is in dir /ednpdtu3/u01/pipe and it is accessing file pipe from dir var/spool/mail/ .......

but it is not able to access that file, i think some problem in logic,plz help me in that