本文介绍了我如何获得每 30 分钟运行一次的 cron 作业?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望添加一个 crontab
条目,以便每 30 分钟、整点后 30 分钟或接近的时间执行一个脚本.我有以下内容,但它似乎没有在 0 上运行.
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?
cron 在 OSX 上运行.
The cron is running on OSX.
推荐答案
做:
0,30 * * * * your_command
这篇关于我如何获得每 30 分钟运行一次的 cron 作业?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!