I have a few test scripts, each of which runs a test PHP app. Each script runs forever.
foo.sh each run a PHP script. Each shell script runs the PHP app in a loop, so it runs forever, sleeping after each run.
I'm trying to figure out how to run the scripts in parallel at the same time. See the output of the PHP apps in the stdout/term window.
I thought, doing something like the following might work:
foo.sh > &2 dog.sh > &2 cat.sh > &2
In a shell script it would be sufficient, but it's not working.
foo.sh, runs foo.php once, and it runs correctly dog.sh, runs dog.php in a never ending loop. it runs as expected cat.sh, runs cat.php in a never ending loop *** this never runs!!!
It appears that the shell script never gets to run
cat.sh. If I run
cat.sh by itself in a separate window/term, it runs as expected.
Does anyone have any ideas on how I can get these scripts to run in parallel?