[ale] Line truncation in a terminal....
Geoffrey
esoteric at 3times25.net
Wed Oct 2 09:46:15 EDT 2002
John Wells wrote:
> Cool. Thanks. Wonder why when you run ps and just send results to
> stdout, the -w behavior is default. However, when you pipe through to
> grep, you have to specify the -w to get the same output.
I don't find that it is. Here's an example:
ps -ef (I'm displaying just one line of the actual output for comparisions):
esoteric 6314 6308 99 Oct01 ? 17:03:09 /usr/local/bin/motion -c
50000 -
ps -ef|grep motion
esoteric 6314 6308 99 Oct01 ? 17:03:09 /usr/local/bin/motion -c
50000 -
ps -efw |grep motion
esoteric 6314 6308 99 Oct01 ? 17:04:34 /usr/local/bin/motion -c
50000 -i Composite1 -q 100 -t /home/esoteric/watch -n ntsc
>
> Interesting.
>
> Thanks,
>
> John
>
> Geoffrey said:
>
>>You didn't use the google site search? :) I think there was a
>>discussion on the list recently regarding the '-w' option to ps.
>>
>>John Wells wrote:
>>
>>>If I do a "ps -ef", the lines returned span the entire width of my
>>>current terminal.
>>>
>>>However, if I do a "ps -ef | grep something", the resulting lines
>>>truncate at around 63 characters.
>>>
>>>Another problem is that, in the first case, if the line goes beyond
>>>what my terminal can display, it *doesn't* wrap....I just can't see
>>>those lines.
>>>
>>>What explains the difference in behavior here, and what can I change
>>>to control it? I'm assuming it's based on TERM setting, but would
>>>like some more info...
>>>
>>>
>>>Thanks as always,
>>>
>>>John
>>>
>>>
>>>
>>>
>>>
>>>---
>>>This message has been sent through the ALE general discussion list.
>>>See http://www.ale.org/mailing-lists.shtml for more info. Problems
>>>should be sent to listmaster at ale dot org.
>>>
>>>
>>
>>
>>--
>>Until later: Geoffrey esoteric at 3times25.net
>>
>>I didn't have to buy my radio from a specific company to listen
>>to FM, why doesn't that apply to the Internet (anymore...)?
>>
>>
>>---
>>This message has been sent through the ALE general discussion list. See
>>http://www.ale.org/mailing-lists.shtml for more info. Problems should be
>> sent to listmaster at ale dot org.
>
>
>
>
>
--
Until later: Geoffrey esoteric at 3times25.net
I didn't have to buy my radio from a specific company to listen
to FM, why doesn't that apply to the Internet (anymore...)?
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list