Date: Mon, 16 Jul 2007 11:27:37 +0700 (ICT) From: Olivier Nicole <on@cs.ait.ac.th> To: dmehler26@woh.rr.com Cc: freebsd-questions@freebsd.org Subject: Re: cron job every 5 hours Message-ID: <200707160427.l6G4Rb5q090225@banyan.cs.ait.ac.th> In-Reply-To: <000f01c7c56d$da44d640$0200a8c0@satellite> (dmehler26@woh.rr.com) References: <000f01c7c56d$da44d640$0200a8c0@satellite>
next in thread | previous in thread | raw e-mail | index | archive | help
> I want to run an updater script, every 5 hours and x minutes. I thought > to use: > > minute 5 * * * root path/to/scriptname > > but that looks like it only works once a day, i want it to go every 5 hours > not justa at 5 in the monrning. You could sechedule you jor at 5, 10, 15 and 20 on monday, then 1, 6, 11, 16 and 21 on Tuesday and etc, but as the number of hours per week is not a multiple of 5, next week Monday would be at 2, 7, 12, 17 and 22, and that would not work with cron. If you absolutely need it to be 5 hours (6 hours would work nicely with cron) have your job restart itself with at(1). Cron must work on a weekly sechedule. bests, Olivier
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707160427.l6G4Rb5q090225>