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: [EMAIL PROTECTED]
http://intevation.de/~thomas/


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
flexbackup-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/flexbackup-help

Reply via email to