Find the answer to your Linux question:
Results 1 to 2 of 2
Hi there, tia for your help I'll make try to make this as simple as possible...I think it's an easy one but I cannot locate an answer anywhere! I have ...
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    1

    Quick and painless crontab question

    Hi there, tia for your help

    I'll make try to make this as simple as possible...I think it's an easy one but I cannot locate an answer anywhere!

    I have a job that I want to run every minute between the hours of 9am and 9pm. I'm just confused as to how I'd note the hours, I know it's going to be one of the following:

    * 9-21 * * * /usr/local/myscript.pl

    -OR-

    * 9-20 * * * /usr/local/myscript.pl

    If I include the 21 in the hour range, will it then run every hour INCLUDING 21:00? That is, run at 21:00, 21:01, 21:02 etc. until 21:59?

    I want it to not run before 9am, not run later than 9pm. Get it? thanks!

    -sky

  2. #2
    Linux Newbie JosePF's Avatar
    Join Date
    Jun 2010
    Posts
    225
    Hello,
    */1 9-21 * * * /usr/local/myscript.pl

    I think this is that you want

    Regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...