We have an app that is using a fairly simple stack (Linux, PHP, Oracle, Shell Scripts, etc).We have a series of scripts that need to be executed:/scr/app1/start.sh/scr/app2/start.php/scr/app3/kickoff.py/scr/app4/test.shThe dependency rules are as follows:app1 must be run firstapp2 then must be run nextapp3 and app4 can be run in parallelThat being said, I am looking to capture the following from ALL scripts:exit codes (used to determine success of failure / breakage of chain)standard out and/or standard errorThe solution does not necessarily have to be written in PHP, it just has to work. Node.js / io.js is part of our build stack so we are comfortable building there.Basically the parallelism is the real challenge that I see. What is the best approach to this problem while satisfying all of the requirements?
Executing scripts in parallel based on dependency tree
php;node.js;parallel programming;shell