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?
|
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. |