且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我如何得到一个cron工作每30分钟运行一次?

更新时间:2022-10-29 23:23:32

执行:

  0,30 * * * * your_command 




I'm looking to add a crontab entry to execute a script every 30 minutes, on the hour and 30 minutes past the hour or something close. I have the following, but it doesn't seem to run on 0.

*/30 * * * *

What string do I need to use?

The cron is running on OSX.

Do:

0,30 * * * * your_command