Question

Is this the correct way for setting a cron job to run every 3 hours? After setting it this way, cron is executing the command every minute.

enter image description here

Was it helpful?

Solution

Change Minute to be 0. That's it :)

Note: you can check your "crons" in http://cronchecker.net/

Example

OTHER TIPS

Change Minute parameter to 0.

You can set the cron for every three hours as:

0 */3 * * * your command here ..

The unix setup should be like the following:

 0 */3 * * * sh cron/update_old_citations.sh

good reference for how to set various settings in cron at: http://www.thegeekstuff.com/2011/07/cron-every-5-minutes/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top