I have createde i php script that runs an external unix command without buffering.
The script called nph-scriptname.php contains these lines :
echo "<pre>";
system("command $var", $returncode);
echo "</pre>";
The command takes quite a long time to execute, and I want to watch the output as it is generated. That works great !
Now, when the command has finished, I want to be able the email the output. How can I do that ?
Thanks
Tom