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

user1856596 picture user1856596 · Nov 27, 2012 · Viewed 72.1k times · Source

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?

Answer

lenik picture lenik · Nov 27, 2012

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