PHP execute command as subcommand
- by Thomaschaaf
I have the following 2 files and am executing them on linux (debian).
File1.php
<?php
exec("php -f file2.php > /dev/null 2>&1 &");
sleep(100);
File2.php
<?php
exec("sleep 30 > /dev/null 2>&1 &");
exec("sleep 30 > /dev/null 2>&1 &");
sleep(100);
The way it currently is it first starts file1.php…