Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

cron

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?

like image 235
user1856596 Avatar asked Nov 27 '12 12:11

user1856596


People also ask

What is the use of * * * * * In cron?

It is a wildcard for every part of the cron schedule expression. So * * * * * means every minute of every hour of every day of every month and every day of the week .

What is cron expression 0 * * * *?

Meaning of cron expression 0 * * * * *? I think it means the scheduler is expected to run every seconds.


1 Answers

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

like image 170
lenik Avatar answered Oct 09 '22 05:10

lenik