Hi All, my aim is to invoke a shell script from a PHP program and then wait for a few seconds to send some termination key to it (I can't simply kill it because I want to test the correct execution of the termination phase).
Here is an example of what I'd like to have:
system( "RUNMYSCRIPT.sh" ); // Launch the script and return immediately.
sleep( 10 ); // Wait.
exec( "q" ); // Send a termination key to the previous script?