[Omaha.pm] Watching sendmail log in real time

Jay Hannah jhannah at omnihotels.com
Fri Apr 27 08:48:12 PDT 2007


Another 1 minute Perl trick.

j


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



More information about the Omaha-pm mailing list