On Thursday 05 August 2004 03:33, C Hamel wrote:
This is the actual line for crontab, plus the explanation. Do you disagree?
With every fibre in my body
0 /1080 * * * * <script> 2&>1 /dev/null should be equal to every 1080 minutes which divided 60 gives you 18.
0 is not a range. And the minutes of an hour only goes from 0 to 59. This is simply not the way crontab works. The minute field holds the minute(s) of the hour when you want to run the script. It can be a range, such as 10-20 or 0-59 or *, and a range can have a step value, such as 10-20/2, which means "from 10 to 20, every two minutes". But this "every two minutes" does not mean what you think it does. Specifically, it does not mean that you can "cross the line" into the next hour, with that 1080 you have. What your line would do (provided there isn't a space between 0 and /, as there appears to be) is the same as if you had put 0 * * * *, since cron will add 1080, observe that 1080 is greater than 59, and stop. It is just not possible to do what you want with a simple one-line solution in crontab. Also, the last bit should probably be <script> > /dev/null 2>&1
-- ...CH "The more they over-think the plumbing, the easier it is to stop up the drain." Scotty