# date Fri Dec 30 09:59:27 MYT 2011 # date -v -1d +%b\ %Oe Dec 29
With this, make cron send me an email with filtered entries of /var/log/messages :
1 1 * * * grep "`date -v -1d +\%b\ \%Oe`" /var/log/messages | mail -s "Yesterday ..." root@example.com
See ya !!!
No comments:
Post a Comment