LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Output truncated when using pipe (https://www.linuxquestions.org/questions/linux-general-1/output-truncated-when-using-pipe-126430/)

tells 12-16-2003 04:38 PM

Output truncated when using pipe
 
I am trying to do a process list with ps -ewf and I want to grep some characters that are at the end. However whenever I use | or > to a file, the end characters are truncated so the grep does not work. Does anyone know how to redirect the output of ps without it being truncated?

d_t_baker 12-16-2003 08:06 PM

If you do

ps -ewf > tempfile

then the output from ps should go into tempfile. After doing the above command, do 'cat tempfile' and see if you get the same output as from the ps command.

If that still dosnt work, try doing the same thing in a different type of terminal, ie aterm instead of xterm, or even tty1 (get there by going ctrl+alt+F1) too see if that makes a difference.

Dave

Note:
ps axf
or
ps axfu
give a much nicer display


All times are GMT -5. The time now is 09:43 AM.