문제

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

도움이 되었습니까?

해결책

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

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

Example

다른 팁

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/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top