Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to sleep 10 seconds before running a linux command?

Tags:

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 can I run a cron operation to do that?

Current crontab setting:

* * * * * curl http://www.google.com/ 
like image 983
eric Avatar asked Dec 12 '10 08:12

eric


1 Answers

* * * * * sleep 10;curl http://www.google.com/ 
like image 75
Martin v. Löwis Avatar answered Dec 07 '22 23:12

Martin v. Löwis