I am trying to simply use the shell command "top" and get the output. For those of you who say top is an interactive command, it doesn't have to be. My script is below, and I'm getting nothing back in the browser. Does anyone have a reason or a fix for this?
<pre>
<?PHP passthru("top -bn1"); ?>
</pre>
Other types of commands are working.
passthru("ps -axw") and passthru("w") work just fine.
Thanks
John