Posted by DC on 08/26/05 18:51
Im not even sure which on i should be using, but hear is my situation. From within my php script I need to run another program and put it in
the background... I thought that doing exec("/usr/local/bin/someapp &") would do it, but it dosn't...
This program should be througn in the background (it has an endless loop and dosn't want user imput or anything).
after this program has started, my php script needs to wait for 5 seconds, and continue running.
at the end of the script I need to kill the program i originally started...
Can anyone help me out with this???
here is my perl equivilent:
system("myapp \&");
sleep 5;
.... ..... ....
system("killall -9 myapp");
Thank you
[Back to original message]
|