why my cron job executing multiple times?

霸气de小男生 提交于 2019-12-02 00:25:42

问题


I have set up a cron job that need to be executed once a day but it is getting executed multiple times.I have set up it as I mentioned below:

5 8 * * * /sh_file_path

Can anyone please tell me why is this happening and what should I do to resolve this problem.


回答1:


Without more knowledge about your particular setup/system, and the fact that all jobs get executed multiple times, I can only surmise that you have multiple cron daemons running on your system.

Do a full process list and grep for cron (most of them have that word in the name of the binary) and see how many are running. On a standard linux system, this should work:

ps aux | grep cron

Then you would have to figure out which should be running and kill the others.



来源:https://stackoverflow.com/questions/24012666/why-my-cron-job-executing-multiple-times

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!