[lug] ps command

Thurston, Jason Jason.Thurston at itb.mckhboc.com
Wed Feb 14 12:48:14 MST 2001


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






More information about the LUG mailing list