Good afternoon, comrades.

The essence of the matter: Crones run every 10 minutes, utility (daemon): fcron , instead of cron .

Fcron has one specificity that does not allow you to perform a task if the previous one has not yet been completed.

For example, the script scriptname.php is executed on the crown every 10 minutes. And once again it started at 12:10. But, if the specified script does not have time to execute in 10 minutes, then at 12:20 the next time the script does not start anymore simply because the previous one has not yet been completed (I ask for your professional help!

I need uninterrupted script work. I need that every 10 minutes the script is guaranteed to start, despite the fact that the previous one has not yet been completed.

  • and what is the usual crond did not suit you? - pyatak
  • I use what I have, I cannot change it (Alas, I have to use what I have. - frops

2 answers 2

So this ... In the bash, you can push any command (and the script as well) into the background, after which you put the ampersand icon - "&". Here it is very well described, though, in aglitsky: http://lists.gnu.org/archive/html/help-bash/2012-01/msg00063.html And at least with a dozen of them in fcrontab shove - here they are forks !

    The first thing that comes to mind ...

    root@host:~# cat cron_dummy.sh#!/bin/bashwhile true; #Тут всякие там php /path/to/script > /dev/nulldo echo "good";sleep 600;doneroot@host:~# ./cron_dummy.sh &; disown