I have a PHP script that runs on CRON and looks like this:
system("/usr/bin/php ".__DIR__."/main.php > ".__DIR__."/main_log.txt");
After main.php file does some processing, I'd like to execute two other scripts. Here is how I'm doing it inside main.php:
system("/usr/bin/php ".__DIR__."/script1.php > ".__DIR__."/script1_log.txt");
system("/usr/bin/php ".__DIR__."/script2.php > ".__DIR__."/script2_log.txt");
Since both script1.php and script2.php are doing very heavy processing (each may take about 5 hours), I'd like to know if these two calls are running simultaneously or if the next system call has to wait for the first one to finish before it can start?
My goal is for both scripts to run simultaneously.