[lug] ps command

Thurston, Jason Jason.Thurston at itb.mckhboc.com
Wed Feb 14 15:47:37 MST 2001


Thanks for the quick responses.  The "w" arg works.

It certainly is confusing when you see everything with a plain "ps -ef" but
loose data when using pipes or redirects.  I think Stimits is correct about
why it is happening.

I think its a bug and the "w" option stands for "workaround".

Thanks,
Jason

-----Original Message-----
From: charles at lunarmedia.net [mailto:charles at lunarmedia.net]
Sent: Wednesday, February 14, 2001 2:31 PM
To: LUG-DISCUSS
Subject: Re: [lug] ps command


try adding a "w" flag.

-cjm


On Wed, 14 Feb 2001, Thurston, Jason wrote:

> Why does the stdout of "ps" get truncated to 80 characters when I pipe or
> redirect it.
>
> example of truncated listing:
> ps -ef | grep csurvey
> csurvey  29502 29500  0 Feb13 ?        00:00:00 /bin/sh -c
> /usr/local/jdk1.2.2/b
> csurvey  29503 29502  0 Feb13 ?        00:00:00
> /usr/local/jdk1.2.2/bin/i386/gre
>
> however, if I use:
>
> ps -ef >/tmp/test.txt    #will truncate after the 80 char the output to
the
> test.txt file.
>
> ps -ef                         #will not truncate, but can't grep on
> anything after the 80th character.
>
>
>
> Thanks,
> Jason
>
>
>
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
>

_______________________________________________
Web Page:  http://lug.boulder.co.us
Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug



More information about the LUG mailing list