Search code examples
cron

Running a cron job 3 times (1 pm, 2 pm and 3 pm for example)?


I am not sure how to run a cron job at 3 specific hours every day. I want to run it at 1pm, 2 pm and 3pm.

Is it possible, using a single expression?


Solution

  • you may use this:

    # m   h   dom mon dow   command
    0 13,14,15 *   *   *     /home/user/command
    

    your /home/user/command will be run at 13:00, 14:00 and 15:00