Answer the question
In order to leave comments, you need to log in
How to run several other php scripts from one php script (with pauses of 1 minute)?
Good afternoon!
There are a little more than 20 scripts (they collect statistics in a table), I run each script in the crown in turn with an interval of 1 minute. And so every hour. Due to the number of scripts in crontab, a canvas of startup lines for scripts turned out, which is not very satisfactory. And climbing into crontab every time when you need to turn off one script is also not good. The following question arose: is it possible to run all these scripts (also with pauses of 1 minute) from another php script, and already its resp. to hang up on start in cron for every hour? And how can this be done?
Answer the question
In order to leave comments, you need to log in
try it like this should work
<?php
include $script1; // путь к файлу скрипта 1
sleep(60);
include $script2; // путь к файлу скрипта 2
sleep(60);
include $script3; // путь к файлу скрипта 3
и так далее...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question