[NBLUG/talk] simple cron question

Troy Arnold troy at zenux.net
Tue Oct 14 16:55:58 PDT 2008


On Tue, Oct 14, 2008 at 04:42:45PM -0700, Sean wrote:
> I've read a few blogs, MAN pages and even the Debian Admin Wiki guide,
> but I can't find a solid answer on this.
> 
> I need to run a task in cron every 2 or 3 days, so on the day portion
> can I just use */3 or should I go with 0,3,6 as an approximation? It
> looks like cron in Debian is Vixie Cron according to the man pages,
> but dpkg just shows "cron". As such I don't know if the */3
> designation is supported on the days section.

Yes, you can use */3 in the days.  You could always test that with:
* * * * */3  date >> ~/crontest

Did you see section 5 of the man page for crontab ?
man 5 crontab

-t




More information about the talk mailing list