[X-Unix] Stop Terminal truncating stdout to window width?
rossman at columbia.edu
rossman at columbia.edu
Tue Nov 28 12:31:55 PST 2006
Its 'ps' that is doing the not-so-smart ass truncations.
Try "ps -alxww"
Quoting Jerry Krinock <jerry at ieee.org>:
> Whenever I a run a command which produces stdout wider than the
> window, it gets truncated immediately. For example, say I'm
> trying to find a process named "myProcess"
>
> ps -alx | grep myProcess
>
> If I save this in a .command script, give it to someone and they
> run it, myProcess is usually not found because the ps stdout
> will be longer than 80 characters, and some not-so-smart ass
> decided to truncate this to the Terminal window width, ^before^
> it even gets piped to grep. If the user then make the window
> wider and re-runs the command, it works. ARGGGHHH!!!!
>
> I've been searching without success for a way to change this
> infantile behavior. Seems like it should be an environment
> variable of some kind. Is there?
More information about the X-Unix
mailing list