开发者

Run cron now without changing its settings

开发者 https://www.devze.com 2023-04-12 11:40 出处:网络
I have a job scheduled by cron: popping emails from server every hour. But sometimes I don\'t want to wait for 60 minutes to check my emails. To do it, I use a script which run the same command I ha

I have a job scheduled by cron: popping emails from server every hour.

But sometimes I don't want to wait for 60 minutes to check my emails. To do it, I use a script which run the same command I have in crontab. It开发者_如何学编程 is essentially as running the cron before it was scheduled tor run. Is it possible to run cron at particular time without changing it's settings?


You should be able to use the following:

at now /cron/monthly_save 


You could achieve this by using the tool anacron, in addition to cron. Forcing execution of a job then becomes as easy as:

anacron -f <your jobname>
0

精彩评论

暂无评论...
验证码 换一张
取 消