开发者

How to sleep 10 seconds before running a linux command?

开发者 https://www.devze.com 2023-01-29 22:29 出处:网络
Simple question: I want to run a cron operation every minute at the 10th second (for example at 2:00:10 PM). The cron operation runs a curl command to download a website page. How c开发者_如何学运维an

Simple question: I want to run a cron operation every minute at the 10th second (for example at 2:00:10 PM). The cron operation runs a curl command to download a website page. How c开发者_如何学运维an I run a cron operation to do that?

Current crontab setting:

* * * * * curl http://www.google.com/


* * * * * sleep 10;curl http://www.google.com/
0

精彩评论

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