Mailinglist Archive: opensuse (4237 mails)

< Previous Next >
Re: [SLE] Pullin' my hair out... arrrgh
  • From: C Hamel <vgm2@xxxxxxxxxx>
  • Date: Wed, 4 Aug 2004 21:44:11 -0500
  • Message-id: <200408042144.11462.vgm2@xxxxxxxxxx>
On Wednesday 04 August 2004 21:29, Anders Johansson wrote:
> 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
>
Got it. Thanks for the 'dummy's explanation' :-)
--
...CH
"The more they over-think the plumbing,
the easier it is to stop up the drain."
Scotty


< Previous Next >