Jesse Sunday wrote:
> 
>     Sort of off topic, I know...
> 
> Someone please enlighten me as to how I would have a cron job scan my
> /var/log/maillog for a sting (or more)
> 
> /usr/local/sbin/postfix check; egrep '(reject|warning|error|fatal|panic):'
> /var/log/maillog
> 
> ^^ Is a cron job I have now...   would it be similar???
> 
> grep /var/log/maillog (words) | mail -s "Yack" [EMAIL PROTECTED]  ???  how
> would I do it???
> 
> Thanks!!!
> 
> Jesse
> 
> PS I am not asking how to install cron jobs, just what string would I use...


Write a shell or perl script that does what you want, and run the script
from cron. It would seem to make alot more sense...

Mike

Reply via email to