Re: output of 'ps -ef' getting truncated
- From: "Tintin" <Tintin@xxxxxxxxxxxxxxx>
- Date: Sat, 15 Oct 2005 21:44:14 +1300
<dn.perl@xxxxxxxxx> wrote in message
news:1129352868.193514.162920@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> 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.
.
- References:
- output of 'ps -ef' getting truncated
- From: dn.perl@xxxxxxxxx
- output of 'ps -ef' getting truncated
- Prev by Date: Re: output of 'ps -ef' getting truncated
- Next by Date: FAQ 5.20 Why can't I just open(FH, ">file.lock")?
- Previous by thread: Re: output of 'ps -ef' getting truncated
- Next by thread: Re: output of 'ps -ef' getting truncated
- Index(es):
Relevant Pages
|