M
M
marenco_victor2015-02-03 16:34:21
Task Schedulers
marenco_victor, 2015-02-03 16:34:21

Need to run php script on server 1 time per second?

I'm not strong in working with cron, I think that I can somehow do it so that it can be used to run script.php once a second. Who knows tell me

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2015-02-03
@merryjane

Cron does not know how to run tasks per second.
You either need to run an infinite wrapper loop and run tasks every second in this loop. And put a watchdog in the crowns, which will pick up your wrapper if it falls.
The second option is to use something more advanced like snaked:
search.cpan.org/~kohts/snaked-0.14/lib/snaked.pm

M
Max, 2015-02-03
@AloneCoder

* * * * * user-name command to be executed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question