运行cron作业3次(例如,下午1点,下午2点和下午3点)? [英] Running a cron job 3 times (1 pm, 2 pm and 3 pm for example)?
本文介绍了运行cron作业3次(例如,下午1点,下午2点和下午3点)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不知道如何在每天的3个特定时间运行cron作业。
I am not sure how to run a cron job at 3 specific hours every day. I want to run it at 1pm, 2 pm and 3pm.
是否可以使用单个表达式?
Is it possible, using a single expression?
推荐答案
您可以使用:
# m h dom mon dow command
0 13,14,15 * * * /home/user/command
您的 / home / user / command
将在13:00,14:00和15:00运行
your /home/user/command
will be run at 13:00, 14:00 and 15:00
这篇关于运行cron作业3次(例如,下午1点,下午2点和下午3点)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文