(Elementary user)
Can anyone please help me with the following; I would like to execute a script on Tuesday's but only in even weeks.
In my effort below I am using trying to evaluate the %W format hence my '?'. Is there a way of evaluating as to whether the week is odd or even?
00 06 * * 2 ([ "`date +\%W`" -eq ? ] && ( /path/to/script ))
Best regards
Can anyone please help me with the following; I would like to execute a script on Tuesday's but only in even weeks.
In my effort below I am using trying to evaluate the %W format hence my '?'. Is there a way of evaluating as to whether the week is odd or even?
00 06 * * 2 ([ "`date +\%W`" -eq ? ] && ( /path/to/script ))
Best regards