Thanks it works.
> On Mon, 2003-10-06 at 19:41, Michael P. Carel wrote:
> > Hi again,
> >
> > Have another problem here I need to get the output of this syntax
> >
> > $ps = (passthru("ps -ef"));
> >
> > and store it in an array line by line, I specifically want to get the
> > Columns of the PI
On Tue, 7 Oct 2003 09:41:03 +0800, you wrote:
>Have another problem here I need to get the output of this syntax
>
>$ps = (passthru("ps -ef"));
>
>and store it in an array line by line,
Turn on output buffering, grab the output of your script, then turn it off.
(ob_start, ob_get_contents, ob_end_
I don't know if this is the easiest way but a solution
Pipe ps -ef to a file read the file into an array and do with it what
you will.
EG
$filename = "/tmp/psefdump.txt";
exec("ps -ef > $filename");
$lines = file($filename);
foreach ( $lines as $var ) {
// Yadda Yadda
}
Hope this hel
On Mon, 2003-10-06 at 19:41, Michael P. Carel wrote:
> Hi again,
>
> Have another problem here I need to get the output of this syntax
>
> $ps = (passthru("ps -ef"));
>
> and store it in an array line by line, I specifically want to get the
> Columns of the PID for this command and store it in a
4 matches
Mail list logo