Re: [SLE] Pullin' my hair out... arrrgh

From: Anders Johansson (andjoh_at_rydsbo.net)
Date: 08/05/04

  • Next message: Patrick Shanahan: "Re: [SLE] using the list"
    To: suse-linux-e@suse.com
    Date: Thu, 5 Aug 2004 04:29:25 +0200
    
    

    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

    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: Patrick Shanahan: "Re: [SLE] using the list"

    Relevant Pages

    • Re: [SLE] Pullin my hair out... arrrgh
      ... On Wednesday 04 August 2004 21:29, Anders Johansson wrote: ... >> This is the actual line for crontab, plus the explanation. ... >> disagree? ...
      (SuSE)
    • Re: Chkrootkit warning
      ... On Friday 26 January 2007 22:38, David G. Miller wrote: ... See "man -S5 crontab" for an explanation of the file's contents. ...
      (Fedora)