Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run cron job every 2 hours In the X minute [closed]

I want to run cron job every 2 hours In the X minute
Example:
every 2 hours In the 24 minute
00:24
02:24
04:24
etc.

like image 998
محمد حسين Avatar asked Oct 17 '25 19:10

محمد حسين


1 Answers

Put your desired minute in the minute column, and then use */2 in the hour column to get it to run every two hours.

24 */2 * * * <your command>

like image 89
leekaiinthesky Avatar answered Oct 20 '25 08:10

leekaiinthesky