D
dn.perl
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?
Thanks in advance.
-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?
Thanks in advance.