Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run cron job every one hour and 10 min

Tags:

linux

crontab

I did the following:

0 */10 * * * {CMD}

but it worked until midnight and didn't continue the next day. Can someone please suggest something?

like image 384
Elad Dotan Avatar asked Jan 07 '13 06:01

Elad Dotan


1 Answers

Use this:

10 * * * * {CMD}

which means start new job at 10 minutes of every hour: 1:10, 2:10, ...

If you want to start at 1:10, 2:20, 3:30, ..., then you will need to write a lot of manual rules, each starting at those times (or write your own scheduler).

like image 141
mvp Avatar answered Oct 20 '22 03:10

mvp