Re: output of 'ps -ef' getting truncated

<dn.perl@xxxxxxxxx> wrote in message
> I am trying to grep for a string but cannot since the output of 'ps
> -ef' is getting truncated to 126 characters.
> my @search_arr = `ps -ef | grep -i $my_string` ;
> Can I do 'ps -ef' in Perl instead to get a longer output? Or does any
> switch exist which would enable me to make 'ps -ef' get truncated at
> 192 or 256 characters instead of just 126?

Doesn't matter if you call ps -ef from a Perl script, shell script, or any
other programming language. The output length is going to be limited to
whatever the ps options dicatate.