*nice* maillog output

T. Nifty Hat Mitchell mitch48 at sbcglobal.net
Fri Jun 25 04:35:00 UTC 2004


On Tue, Jun 22, 2004 at 08:25:55PM +0100, Craig Tinson wrote:
> Date: Tue, 22 Jun 2004 20:25:55 +0100
> From: Craig Tinson <craig at 8010.co.uk>
> To: fedora-list at redhat.com
> Subject: *nice* maillog output
> Reply-To: For users of Fedora Core releases <fedora-list at redhat.com>
> 
> this is probably asking a bit much.. but no harm in asking..
> 
> I currently have a spare 14" monitor connected to the mail server so I 
> can monitor whats going on..
> 
> it is permanently running the following:
> 
> tail -f /var/log/maillog | grcat conf.log

??? grcat
Is this grcat as in  /usr/libexec/awk/grcat

> 
> is there an obvious/easy way to trim it.. for example:
> 
> Jun 22 - (20:19:26) Mail From: <someone at somedomain.com> to 
> <craig at 8010.co.uk> (Clean)
> Jun 22 - (20:20:30) Mail From: <someone at somedomain.com> to 
> <craig at 8010.co.uk> (Spam)

How about sed and awk/gawk.


-- 
	T o m  M i t c h e l l 
	/dev/null the ultimate in secure storage.





More information about the fedora-list mailing list