I have a menu which has a button on it. The button executes a process when clicked then it restarts a process on the server via shell_exec.
The problem is, when i restart the process it hangs my display file and never releases it. The start command completes but the display file just sits there doing nothing.
I have the following code which restarts the process.
$status = @shell_exec ('ps xo "pid args" | grep "myscript.pl" | grep -vc "grep"');
$status = trim ($status);
if ($status == '0')
{
$startup = @shell_exec ('/etc/rc.d/init.d/myscript start');
}
After this starts up the process, which it does, why doesnt it release my display?