From: Thomas A. H. <th...@in...> - 2003-12-03 15:11:02
|
On Wed, Dec 03, 2003 at 04:03:34PM +0100, Mathieu Arnold wrote: > +-le 03/12/2003 15:38 +0100, Thomas Arendsen Hein écrivait : > | I've read the FAQ, but didn't find an answer why these two crontab > | entries should behave different: > | > | With -wday: > | 0 3 1-7 * * flexbackup -wday 7 -set all .... > > That will do every Sunday between 1 and 7 > > | Without -wday: > | 0 3 1-7 * 7 flexbackup -set all .... > > This will do every Sunday and every day from 1 to 7. > > So, it's not the same thing :) Ah, that answers my question. Knowing this I took another look in the crontab.5 man page: Note: The day of a command's execution can be specified by two fields -- day of month, and day of week. If both fields are restricted (ie, aren't *), the command will be run when either field matches the current time. Stupid cron :-/ Please add to the FAQ why "0 3 1-7 * 7 flexbackup -set all" doesn't do the expected thing. Thomas -- Email: th...@in... http://intevation.de/~thomas/ |