How to test Cron.daily, Weekly, Monthly....

Matias Féliciano feliciano.matias at free.fr
Mon Oct 18 18:45:18 UTC 2004


Le lundi 18 octobre 2004 à 11:36 -0700, Tom Mitchell a écrit :
> On Sun, Oct 17, 2004 at 01:47:02AM +0100, Timothy Murphy wrote:
> > On Sunday 17 October 2004 01:24, Tom Mitchell wrote:
> > > Is there a sane way to test all the activity that /etc/cron.daily
> > > /etc/cron.hourly /etc/cron.monthly /etc/cron.weekly invoke?
> > 
> > Have you looked at /var/log/cron ?
> 
> Yes, condider this log line:
> 
>  Oct 18 11:02:00 xtl1 CROND[13471]: (bob) CMD (wc /tmp/nofile-here > /dev/null 2>&1 < /dev/null &)
> 
> By the name of the file you might guess that the file does not exist.
> But how do I know that this little script found an error or runs
> correctly.  Knowing that it runs is only the first step.  Some of the
> activity in cron quietly does this and that and is opaque to me.  How
> do I know that each  is still running correctly.
> 
> The next issue is the list of things that run only once in a while.
> There is a list of stuff that will run on Nov 1st when FC3 will
> release.  How do we know that that list does not include a problem?  
> 
> I am also interesting in matching "kernel: audit(.*.): avc:" messages
> to cron tasks.

See : 
/etc/crontab
/usr/bin/run-parts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://lists.fedoraproject.org/pipermail/test/attachments/20041018/9f0350cf/attachment.bin 


More information about the test mailing list