Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frequent Cron

Status
Not open for further replies.

DeepBlerg

Technical User
Jan 13, 2001
224
AU
Hi,

Is it possible to set a cron to run say every 10 seconds. It appears that the minimum frequency is 1 minute.

Thanks
 
As far as I know this isn't possible (but I guess it may be in more recent versions where things like 60/6 might be supported in the minute field of cron - perhaps someone can confirm). If not, perhaps it would be possible to set your script up so that it runs, sleeps for ten seconds then runs itself again. Something like this:

nohup <script to run> &
sleep 10
nohup <script to run> &

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top