General Question

Wilhelm's avatar

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

Asked by Wilhelm (69points) September 26th, 2007

Just curious.

Observing members: 0 Composing members: 0

2 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.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther