محمد حسين محمد حسين - 5 months ago 25
Linux Question

Run cron job every 2 hours In the X minute

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.

Answer

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>

Comments