-2

I need run a job every 15 minutes from 11 PM to 2 AM. I am using below range but its not working.

*/15 23,00-02 * * *

cron is ignoring the 23 and is running the job from 12AM ie 00.

Its in RedHat Enterprise Linux and its accepting ranges.

  • 1
    Have you tried putting them in ascending order? 00-02,23 (or even 00,01,23, as you don't want it running after 2am) – JigglyNaga Sep 26 '18 at 14:52
  • No i have not. I will try and let you know. – Arun Kumar Sep 26 '18 at 14:56
  • Possible duplicate unix.stackexchange.com/questions/204037/… – user88036 Sep 26 '18 at 15:44
  • @Goro I used that answer(duplicate one) and it created the problem i stated in my question. – Arun Kumar Oct 5 '18 at 18:47
-1

This worked for me */15 00,01,23 * * *

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.