General Question

Wilhelm's avatar

Why doesn't Cron allow for intervals UNDER 60 seconds?

Asked by Wilhelm (69points) September 26th, 2007
2 responses
“Great Question” (1points)

Just curious.

Observing members: 0
Composing members: 0

Answers

samkusnetz's avatar

perhaps because anything that needs to happen more than once a minute really ought to be its own process, governing its own schedule?

Wilhelm's avatar

Like a daemon or service. That makes sense, but the instance that brought up this question came from trying to execute a PHP script every 10 seconds.

My solution was to create a loop around the particular process and invoke PHP’s sleep() function to pause it for 10 seconds. The script gets executed every 60 via a cron assignment.

You do make a good point, though. Thanks!

Answer this question

Login

or

Join

to answer.

Mobile | Desktop


Send Feedback   

`