I have a crontab that looks like the following
* 22 * * * php /var/www/domain1/cron.php
* 22 * * * php /var/www/domain2/cron.php
* 22 * * * php /var/www/domain3/cron.php
* 22 * * * php /var/www/domain4/cron.php
...
However the scrips shown above seems to mess up and run op to a hundred times each! Im not sure why this happens, but since they are all set to start at the same time i would try and change this. It should be said that if i run each cron file manually i see no such behavior and get the expected behavior.
Can i somehow let cron only run one line at a time ? So that when domain1/cron.php is run it will not run domain2/cron.php before domain1/cron.php has finished?
I cannot change the time for them, since i cannot be sure when each one finishes. On one domain it might take 3 seconds while on another it might take 30 minutes.
* 22means to run the script at22:00,22:01,22:02,22:03through22:59. So each script will be run 60 times.0 22 * * *