in reply to Trying to grab process output.

open my $fh, "ps -ef | grep Jones |" or die; while (<$fh>) { my @F = split; next if $F [7] =~ /perl/ || $F [7] =~ /ps -ef/ || $F [7] =~ m{/bin/ksh}; print "@F[0,1,3,4,7]\n"; }

Abigail

Replies are listed 'Best First'.
Re: Re: Trying to grab process output.
by Anonymous Monk on Jul 16, 2002 at 19:23 UTC
    Thanks to all.