[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Omaha.pm] Watching sendmail log in real time



Another 1 minute Perl trick.

j


# tail -f mail | perl -nle '/(to=\S+).*(stat=\S+)/ && print "$2 $1"'
stat=Sent to=<jerry.a.moore@irs.gov>,
stat=Sent to=velocity@uic.edu,
stat=Sent to=<diwilkie@uic.edu>,
stat=Sent to=AWSZWEZ@YAHOO.COM,
stat=Sent to=<velocity@uic.edu>,
stat=Sent to=<AWSZWEZ@YAHOO.COM>,
stat=Sent to=<ccadcollections@yahoo.com>,