grep To:\ username /var/spool/username | wc

The first number this 'wc' returns is the number of lines

man 'wc'
to check if their a way to suppress the no of words, no of characters from the 
output of wc


User 
mail -u username
to check the no of messages in /var/spool/username


Wez

PS.
Maybe learn perl, if the above doesn't work.  It was designed for extracting 
and reporting information (Practical Extraction and Report Language)



On Saturday 06 Jul 2002 5:19 pm, Ashley M. Kirchner wrote:
>     Now that the system is up and running, I'm moving on to the next
> "problem" block.  I'm using sendmail as my MTA, and I have quotas enabled
> on the /home drive.  However, how do I also count the users' spool files in
> /var/spool/mail/<user> (where sendmail dumps incoming messages)?  I want
> each user's quota to reflect both their account and their spool file.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to