Okay, I discovered that all of the logging is being done in /var/log/maillog as opposed to /var/log/messages, and once I pointed grep to the right file, then all has become well in the universe.

Thanks again.

Try starting with the simple grep command, then add each command with its pipe
symbol one at a time until something breaks (or, hopefully, it all works).

Note that the grep command here *is* very simple, so it is no different from
the sort of thing you have used it for in the past.   All the remaining lines
are commands which the output is piped to, not a more complicated grep...

 >>      grep FOUND /var/log/messages \
 >>      | cut -d ":" -f 5 \
 >>      | sed -e "s/\ FOUND//" \
 >>      | sort \
 >>      | uniq -c \
 >>      | sort -r

So, start off with just:


grep FOUND /var/log/messages

This should generate lots of lines of output, but no error.

Assuming that works, add the next command and test again:

grep FOUND /var/log/messages | cut -d ":" -f 5

(or split it as shown above with a "space-backslash" at the end of the first
line)

Then add more commands one at a time (you will suddenly get a whole lot less
lines once you add the "uniq" command) and hopefully all will become clear...

Regards,

Antony.


--
--

Craig Daters ([EMAIL PROTECTED])
Systems Administrator
West Press Printing
1663 West Grant Road
Tucson, Arizona 85745-1433

Tel: 520-624-4939
Fax: 520-624-2715

www.westpress.com

--


------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to