Hi there...
I've been trying to find a solution to this problem for three days. I am trying to create a script that opens up an application and runs it as a process and returns to the script and gathers the output which contains the PID. I'm just running this with php and not apache.
This is what I have so far:
<?php
$output = system('bash -c "kwrite > /dev/null 2>&1 &"');
print($output);
?>
The process is created, but I can't get the output. As I said before, I want the output so I can ascertain the PID.
Any help would be great, thanks!.