将cron设置为在crontab上的凌晨5点运行 [英] Set cron to run at 5am PST in crontab
本文介绍了将cron设置为在crontab上的凌晨5点运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我第一次使用cron在crontab中工作,我想知道是否可以在特定时间每天运行一次,比如说PST下午5点。
I am working with cron in crontab for the first time and I wonder if it's possible to run something once a day at a specific time, let's say 5pm PST?
这是我试过,但如何基于PST时间?
This is what I have tried but how do I base it on PST time?
0 5 * * * command
推荐答案
使用此命令:
H 5 * * *
这将设置cron在PST上午5点运行作业在crontab。
This will set the cron to run the job at 5am PST in crontab.
这篇关于将cron设置为在crontab上的凌晨5点运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文