> -----Original Message-----
> From: Jianping Zhu
> Sent: Tuesday, December 10, 2002 8:18 PM
> Subject: crontab
> 
> 
> ect/crontab
> ----------------------------------------
> SHELL=/bin/bash
> PATH=/sbin:/bin:/usr/sbin:/usr/bin
> MAILTO=root
> HOME=/
> 
> # run-parts
> 01 * * * * root run-parts /etc/cron.hourly
> 02 4 * * * root run-oarts /etc/cron.daily
> 22 4 * * 0Hroot run-parts /etc/cron.weekly
> 42 4 1 * * root run-parts /etc/cron.monthly
> 0,5,10,15,20,25,30,35,40,45,50 * * * * (echo""; date; 
> echo"")>/dev/console
> ---------------------------------------------------------
> 
> I suppose the date will be print on sceen every 5 minute, but 
> it did not. why?

Because you did not specify the user to run the cronjob as. i.e. root

BTW: The above can be summarized as (every 5 minutes)
*/5 * * * * root (echo""; date; echo"") >/dev/console

Further reading should include: man 5 crontab

Steve Cowles



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to