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

[no subject]



Jeff

> 
> 
> MAILTO=email address com
> 15 7 * * * /var/log/secure
> 20 7 * * * /var/log/messages
> 
> I am trying to have my (root) crontab mail the contents of some of my log
> file to me every morning (So I can check them through e-mail).
> 
> The crontab above does email to me, but it gives me:
> 
> /bin/sh: /var/log/messages: Permission denied
> 
> for both. Does anyone know what I am doing wrong? Also, will the crontab
> above actually email the contents of the log files to me, or the entire log
> file (I would like the log files contents to be part of an email so it would
> be easy to read).
> 
> Thanks in advance (I hope)...
> 
> Mike C
> 
> 
> mesh ex-pressnet com
> 
> 
> 
> -- 
>   PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> 		http://www.redhat.com http://archive.redhat.com
>          To unsubscribe: mail redhat-list-request redhat com with 
>                        "unsubscribe" as the Subject.
> 
> 



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