* Misfeature in DEC OSF/1 `ps' command
@ 1994-07-25 14:04 Ray Bellis
1994-07-25 14:47 ` Steve Tate
` (12 more replies)
0 siblings, 13 replies; 16+ messages in thread
From: Ray Bellis @ 1994-07-25 14:04 UTC (permalink / raw)
I've noticed a misfeature in the DEC OSF/1 `ps' command:
If you use the `ps' command, the width of the output is automatically
truncated to the width of the terminal *even* if the output isn't
going to the terminal.
Thus, if you do `ps aux | grep cron' on an 80 column terminal it
won't find your `cron' process.
DEC, please consider turning this terminal width feature off when
the stdout isn't a tty.
Ray.
--
------------------------------------------------------------------------------
R. P. Bellis E-Mail: <Ray.Bellis@psy.ox.ac.uk>
Computing Officer
MRC Centre in Brain and Behaviour
Dept. of Experimental Psychology
University of Oxford Whois: (RB83)
South Parks Road Tel: +44 865 271359
Oxford OX1 3UD Fax: +44 865 310447
------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Misfeature in DEC OSF/1 `ps' command
1994-07-25 14:04 Misfeature in DEC OSF/1 `ps' command Ray Bellis
@ 1994-07-25 14:47 ` Steve Tate
1994-07-25 15:12 ` Alan Lehotsky
` (11 subsequent siblings)
12 siblings, 0 replies; 16+ messages in thread
From: Steve Tate @ 1994-07-25 14:47 UTC (permalink / raw)
Ray Bellis (rpb@psy.ox.ac.uk) wrote:
> If you use the `ps' command, the width of the output is automatically
> truncated to the width of the terminal *even* if the output isn't
> going to the terminal.
Actually, that's standard ps behavior, not a DEC-ism. For an "infinitely
wide" output, use the "ww" option to ps. Check the man page for more info.
--
Steve Tate --- srt@cs.unt.edu | "Nationalism is an infantile sickness.
Dept. of Computer Sciences | It is the measles of the human race."
University of North Texas | -- A. Einstein
Denton, TX 76201 |
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Misfeature in DEC OSF/1 `ps' command
1994-07-25 14:04 Misfeature in DEC OSF/1 `ps' command Ray Bellis
1994-07-25 14:47 ` Steve Tate
@ 1994-07-25 15:12 ` Alan Lehotsky
1994-07-25 15:19 ` Mark Bartelt
` (10 subsequent siblings)
12 siblings, 0 replies; 16+ messages in thread
From: Alan Lehotsky @ 1994-07-25 15:12 UTC (permalink / raw)
In article <RPB.94Jul25150438@axp01.ox.ac.uk>,
Ray Bellis <rpb@psy.ox.ac.uk> wrote:
>I've noticed a misfeature in the DEC OSF/1 `ps' command:
>
>If you use the `ps' command, the width of the output is automatically
>truncated to the width of the terminal *even* if the output isn't
>going to the terminal.
>
>Thus, if you do `ps aux | grep cron' on an 80 column terminal it
>won't find your `cron' process.
I fixed this in OSF's OSF/1 V1.3. I don't know if or when
Digital will incorporate the changes.
However, you can get around this. Read the man page...it
tells you the environment variable ps uses to figure out your
line-length. [The permanent fix was to call isatty() before
trying to truncate to a specific line length....]
-- Al Lehotsky
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Misfeature in DEC OSF/1 `ps' command
1994-07-25 14:04 Misfeature in DEC OSF/1 `ps' command Ray Bellis
1994-07-25 14:47 ` Steve Tate
1994-07-25 15:12 ` Alan Lehotsky
@ 1994-07-25 15:19 ` Mark Bartelt
1994-07-25 15:36 ` Ray Bellis
` (9 subsequent siblings)
12 siblings, 0 replies; 16+ messages in thread
From: Mark Bartelt @ 1994-07-25 15:19 UTC (permalink / raw)
[ Ray Bellis ]
| I've noticed a misfeature in the DEC OSF/1 `ps' command:
|
| If you use the `ps' command, the width of the output is automatically
| truncated to the width of the terminal *even* if the output isn't
| going to the terminal.
|
| Thus, if you do `ps aux | grep cron' on an 80 column terminal it
| won't find your `cron' process.
Try "ps auxww".
Mark Bartelt 416/978-5619
Canadian Institute for mark@cita.toronto.edu
Theoretical Astrophysics mark@cita.utoronto.ca
"Clothes not busy being worn are busy drying." - Dylan, on laundry day
[ singing "It's all right, ma (I'm only bleaching)" ]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Misfeature in DEC OSF/1 `ps' command
1994-07-25 14:04 Misfeature in DEC OSF/1 `ps' command Ray Bellis
` (2 preceding siblings ...)
1994-07-25 15:19 ` Mark Bartelt
@ 1994-07-25 15:36 ` Ray Bellis
1994-07-25 17:47 ` Andrew Gallatin
` (8 subsequent siblings)
12 siblings, 0 replies; 16+ messages in thread
From: Ray Bellis @ 1994-07-25 15:36 UTC (permalink / raw)
In article <RPB.94Jul25150438@axp01.ox.ac.uk> I wrote:
I've noticed a misfeature in the DEC OSF/1 `ps' command:
If you use the `ps' command, the width of the output is automatically
truncated to the width of the terminal *even* if the output isn't
going to the terminal.
Thus, if you do `ps aux | grep cron' on an 80 column terminal it
won't find your `cron' process.
I've since been informed that `ps auxww' will provide unlimited width
output in all cases, although I still maintain that perhaps the
truncation to terminal width shouldn't be done if the output isn't
a tty.
Ray.
--
------------------------------------------------------------------------------
R. P. Bellis E-Mail: <Ray.Bellis@psy.ox.ac.uk>
Computing Officer
MRC Centre in Brain and Behaviour
Dept. of Experimental Psychology
University of Oxford Whois: (RB83)
South Parks Road Tel: +44 865 271359
Oxford OX1 3UD Fax: +44 865 310447
------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Misfeature in DEC OSF/1 `ps' command
1994-07-25 14:04 Misfeature in DEC OSF/1 `ps' command Ray Bellis
` (3 preceding siblings ...)
1994-07-25 15:36 ` Ray Bellis
@ 1994-07-25 17:47 ` Andrew Gallatin
1994-07-25 19:34 ` Frank Wortner
` (7 subsequent siblings)
12 siblings, 0 replies; 16+ messages in thread
From: Andrew Gallatin @ 1994-07-25 17:47 UTC (permalink / raw)
In article <RPB.94Jul25150438@axp01.ox.ac.uk>,
Ray Bellis <rpb@psy.ox.ac.uk> wrote:
>I've noticed a misfeature in the DEC OSF/1 `ps' command:
>
>If you use the `ps' command, the width of the output is automatically
>truncated to the width of the terminal *even* if the output isn't
>going to the terminal.
>
>Thus, if you do `ps aux | grep cron' on an 80 column terminal it
>won't find your `cron' process.
>
>DEC, please consider turning this terminal width feature off when
>the stdout isn't a tty.
>
>Ray.
At least under OSF/1 Version 2.0, if you use the 'w' flag, then this
won't happen.
From the ps man page:
w Uses a wide output format (132 columns (bytes) rather than 80); if this
flag is doubled (ww), uses an arbitrarily wide output. This informa-
tion determines how much of long commands to print.
And it even works!
<1:47pm>renoir/gallatin:~>ps aux | grep cron
gallatin 22268 0.0 0.1 1.30M 288K p7 S + 13:47:53 0:00.02 grep cron
<1:47pm>renoir/gallatin:~>ps auxww | grep cron
root 16518 0.0 0.0 1.35M 24K ?? I Jul 20 0:00.28 /usr/sbin/cron
gallatin 22270 0.0 0.1 1.30M 288K p7 S + 13:47:59 0:00.03 grep cron
Drew
##############################################################################
# Andrew Gallatin, System Administrator #
# Institute of Statistics and Decision Sciences #
# Box 90251, Duke University, Durham, NC 27708-0251 #
# email: gallatin@isds.duke.edu #
##############################################################################
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Misfeature in DEC OSF/1 `ps' command
1994-07-25 14:04 Misfeature in DEC OSF/1 `ps' command Ray Bellis
` (4 preceding siblings ...)
1994-07-25 17:47 ` Andrew Gallatin
@ 1994-07-25 19:34 ` Frank Wortner
1994-07-26 8:56 ` Horst Luehrsen
` (6 subsequent siblings)
12 siblings, 0 replies; 16+ messages in thread
From: Frank Wortner @ 1994-07-25 19:34 UTC (permalink / raw)
In article <RPB.94Jul25150438@axp01.ox.ac.uk>, rpb@psy.ox.ac.uk (Ray Bellis) writes:
|>If you use the `ps' command, the width of the output is automatically
|>truncated to the width of the terminal *even* if the output isn't
|>going to the terminal.
|>
|>Thus, if you do `ps aux | grep cron' on an 80 column terminal it
|>won't find your `cron' process.
Workaround: use the "w" (132 column wide) or "ww" (arbitrarily wide)
option.
ps auxww | grep cron
|>DEC, please consider turning this terminal width feature off when
|>the stdout isn't a tty.
BTW, this behavior (and the "w" and "ww" options) appear on a number of
non-Digital systems as well.
Frank
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Misfeature in DEC OSF/1 `ps' command
1994-07-25 14:04 Misfeature in DEC OSF/1 `ps' command Ray Bellis
` (5 preceding siblings ...)
1994-07-25 19:34 ` Frank Wortner
@ 1994-07-26 8:56 ` Horst Luehrsen
1994-07-26 9:50 ` Robin Hourahane (x8130)
` (5 subsequent siblings)
12 siblings, 0 replies; 16+ messages in thread
From: Horst Luehrsen @ 1994-07-26 8:56 UTC (permalink / raw)
In article <RPB.94Jul25150438@axp01.ox.ac.uk>, rpb@psy.ox.ac.uk (Ray Bellis) writes:
>I've noticed a misfeature in the DEC OSF/1 `ps' command:
>
>If you use the `ps' command, the width of the output is automatically
>truncated to the width of the terminal *even* if the output isn't
>going to the terminal.
>
>Thus, if you do `ps aux | grep cron' on an 80 column terminal it
>won't find your `cron' process.
>
You can use `ps auxww | grep cron'!
HL
--
Horst Luehrsen <Horst.Luehrsen@Informatik.Uni-Erlangen.DE>
Martensstrasse 3, 91058 Erlangen
Tel: +49-9131-857884 Fax:+49-9131-32090
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Misfeature in DEC OSF/1 `ps' command
1994-07-25 14:04 Misfeature in DEC OSF/1 `ps' command Ray Bellis
` (6 preceding siblings ...)
1994-07-26 8:56 ` Horst Luehrsen
@ 1994-07-26 9:50 ` Robin Hourahane (x8130)
1994-08-01 7:48 ` Ray Bellis
1994-07-26 11:45 ` Jon Mauney
` (4 subsequent siblings)
12 siblings, 1 reply; 16+ messages in thread
From: Robin Hourahane (x8130) @ 1994-07-26 9:50 UTC (permalink / raw)
In article <RPB.94Jul25150438@axp01.ox.ac.uk>, rpb@psy.ox.ac.uk (Ray Bellis) writes:
|>I've noticed a misfeature in the DEC OSF/1 `ps' command:
|>
|>If you use the `ps' command, the width of the output is automatically
|>truncated to the width of the terminal *even* if the output isn't
|>going to the terminal.
|>
|>Thus, if you do `ps aux | grep cron' on an 80 column terminal it
|>won't find your `cron' process.
|>
|>DEC, please consider turning this terminal width feature off when
|>the stdout isn't a tty.
Ther have been a number of reply about how to get a wide output, but I would
like to say that this ISN'T a miss feature. Consider the effect of the above
change on:
ps aux | more
The change would cause wide wrapping output, which is just what a user would
not want. Considering that this functionality is standard across a large
number of UNIX's it SHOULD NOT be changed.
Robin
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Misfeature in DEC OSF/1 `ps' command
1994-07-25 14:04 Misfeature in DEC OSF/1 `ps' command Ray Bellis
` (7 preceding siblings ...)
1994-07-26 9:50 ` Robin Hourahane (x8130)
@ 1994-07-26 11:45 ` Jon Mauney
1994-07-26 12:45 ` Larry Cannell
1994-07-26 19:49 ` Mary Walker
` (3 subsequent siblings)
12 siblings, 1 reply; 16+ messages in thread
From: Jon Mauney @ 1994-07-26 11:45 UTC (permalink / raw)
rpb@psy.ox.ac.uk (Ray Bellis) writes:
>I've noticed a misfeature in the DEC OSF/1 `ps' command:
>If you use the `ps' command, the width of the output is automatically
>truncated to the width of the terminal *even* if the output isn't
>going to the terminal.
>Thus, if you do `ps aux | grep cron' on an 80 column terminal it
>won't find your `cron' process.
This is certainly a misfeature. However they do provide (in BSD mode)
a "w" flag that gives 132 column output, and a "ww" flag that provides
unlimited width output.
--
Jon Mauney mauney@csc.ncsu.edu
Mauney Computer Consulting (919) 828-8053
"Have TGT, will travel."
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Misfeature in DEC OSF/1 `ps' command
1994-07-26 11:45 ` Jon Mauney
@ 1994-07-26 12:45 ` Larry Cannell
0 siblings, 0 replies; 16+ messages in thread
From: Larry Cannell @ 1994-07-26 12:45 UTC (permalink / raw)
I think all of these nice people who are answering don't see the problem.
I just tried:
ps -ef ww|fold
on OSF/1 version 1.3b. The ps command only responded with an 80 column
display.
After:
stty cols 250
The above ps command does give a wide display which fold then allowed me
to see. So the problem is not that the original poster doesn't know how
to use the ps command and is not proposing to change any standard.
I don't know how OSF/1 2.0 handles this.
--
Larry Cannell (cannell@ed8200.ped.pto.ford.com)
Powertrain Electronics
Ford Motor Company
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Misfeature in DEC OSF/1 `ps' command
1994-07-25 14:04 Misfeature in DEC OSF/1 `ps' command Ray Bellis
` (8 preceding siblings ...)
1994-07-26 11:45 ` Jon Mauney
@ 1994-07-26 19:49 ` Mary Walker
1994-07-29 8:30 ` Jean-Luc Bernard
` (2 subsequent siblings)
12 siblings, 0 replies; 16+ messages in thread
From: Mary Walker @ 1994-07-26 19:49 UTC (permalink / raw)
In article <RPB.94Jul25150438@axp01.ox.ac.uk>, rpb@psy.ox.ac.uk (Ray Bellis) writes:
|> I've noticed a misfeature in the DEC OSF/1 `ps' command:
|>
|> If you use the `ps' command, the width of the output is automatically
|> truncated to the width of the terminal *even* if the output isn't
|> going to the terminal.
|>
|> Thus, if you do `ps aux | grep cron' on an 80 column terminal it
|> won't find your `cron' process.
|>
|> DEC, please consider turning this terminal width feature off when
|> the stdout isn't a tty.
|>
|> Ray.
|> --
|> ------------------------------------------------------------------------------
|> R. P. Bellis E-Mail: <Ray.Bellis@psy.ox.ac.uk>
|> Computing Officer
|> MRC Centre in Brain and Behaviour
|> Dept. of Experimental Psychology
|> University of Oxford Whois: (RB83)
|> South Parks Road Tel: +44 865 271359
|> Oxford OX1 3UD Fax: +44 865 310447
|> ------------------------------------------------------------------------------
|>
try using "ps axuw |grep cron" or if you want ever more output
try using "ps axuww |grep cron" (that will give the arguments, if any,
passed in)
mary walker
unix engineering group
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Misfeature in DEC OSF/1 `ps' command
1994-07-25 14:04 Misfeature in DEC OSF/1 `ps' command Ray Bellis
` (9 preceding siblings ...)
1994-07-26 19:49 ` Mary Walker
@ 1994-07-29 8:30 ` Jean-Luc Bernard
1994-07-30 14:06 ` Joseph B. Gurman
1994-08-04 18:44 ` Carl J Appellof
12 siblings, 0 replies; 16+ messages in thread
From: Jean-Luc Bernard @ 1994-07-29 8:30 UTC (permalink / raw)
In article 94Jul25150438@axp01.ox.ac.uk, rpb@psy.ox.ac.uk (Ray Bellis) writes:
>I've noticed a misfeature in the DEC OSF/1 `ps' command:
>
>If you use the `ps' command, the width of the output is automatically
>truncated to the width of the terminal *even* if the output isn't
>going to the terminal.
>
>Thus, if you do `ps aux | grep cron' on an 80 column terminal it
>won't find your `cron' process.
>
>DEC, please consider turning this terminal width feature off when
>the stdout isn't a tty.
>
>Ray.
>--
>------------------------------------------------------------------------------
>R. P. Bellis E-Mail: <Ray.Bellis@psy.ox.ac.uk>
>Computing Officer
>MRC Centre in Brain and Behaviour
>Dept. of Experimental Psychology
>University of Oxford Whois: (RB83)
>South Parks Road Tel: +44 865 271359
>Oxford OX1 3UD Fax: +44 865 310447
>------------------------------------------------------------------------------
`ps axuww' works pretty well regardless your terminal width.
---
_________________________________________________________________
Jean-Luc BERNARD Computer Center
Advanced Computer Research Institute Email: jlbernard@acri.fr
1 Boulevard Marius Vivier-Merle Voice: (+33) 72.35.84.03
69443 LYON CEDEX 03 - FRANCE Fax (+33) 72.35.84.10
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Misfeature in DEC OSF/1 `ps' command
1994-07-25 14:04 Misfeature in DEC OSF/1 `ps' command Ray Bellis
` (10 preceding siblings ...)
1994-07-29 8:30 ` Jean-Luc Bernard
@ 1994-07-30 14:06 ` Joseph B. Gurman
1994-08-04 18:44 ` Carl J Appellof
12 siblings, 0 replies; 16+ messages in thread
From: Joseph B. Gurman @ 1994-07-30 14:06 UTC (permalink / raw)
In article <RPB.94Jul25150438@axp01.ox.ac.uk>, rpb@psy.ox.ac.uk (Ray
Bellis) wrote:
> I've noticed a misfeature in the DEC OSF/1 `ps' command:
>
> If you use the `ps' command, the width of the output is automatically
> truncated to the width of the terminal *even* if the output isn't
> going to the terminal.
>
> Thus, if you do `ps aux | grep cron' on an 80 column terminal it
> won't find your `cron' process.
>
> DEC, please consider turning this terminal width feature off when
> the stdout isn't a tty.
Ray -
From the OSF/1 2.0 man page for ps:
w Uses a wide output format (132 columns (bytes) rather than 80); if this
flag is doubled (ww), uses an arbitrarily wide output. This informa-
tion determines how much of long commands to print.
Hope this helps,
Joe Gurman
--
Joseph B. Gurman / NASA Goddard Space Flight Center/ Solar Data Analysis Center / Code 682 / Greenbelt MD 20771 USA / gurman@uvsp.gsfc.nasa.gov
| Federal employees are still prohibited from holding opinions while at work. Any opinions expressed herein must therefore be someone else's. |
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Misfeature in DEC OSF/1 `ps' command
1994-07-26 9:50 ` Robin Hourahane (x8130)
@ 1994-08-01 7:48 ` Ray Bellis
0 siblings, 0 replies; 16+ messages in thread
From: Ray Bellis @ 1994-08-01 7:48 UTC (permalink / raw)
In article <CtJKnw.6q9@ryn.mro.dec.com> rmh@dpg08.enet.dec.com (Robin Hourahane (x8130)) writes:
Ther have been a number of reply about how to get a wide output, but I would
like to say that this ISN'T a miss feature. Consider the effect of the above
change on:
ps aux | more
The change would cause wide wrapping output, which is just what a user would
not want. Considering that this functionality is standard across a large
number of UNIX's it SHOULD NOT be changed.
Robin
Yes, you're right, that's one case that would be a problem. Maybe
it should be set so that it doesn't truncate below 80 characters if
the stdout isn't a tty and the terminal width is set below 80.
Ray.
--
------------------------------------------------------------------------------
R. P. Bellis E-Mail: <Ray.Bellis@psy.ox.ac.uk>
Computing Officer
MRC Centre in Brain and Behaviour
Dept. of Experimental Psychology
University of Oxford Whois: (RB83)
South Parks Road Tel: +44 865 271359
Oxford OX1 3UD Fax: +44 865 310447
------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Misfeature in DEC OSF/1 `ps' command
1994-07-25 14:04 Misfeature in DEC OSF/1 `ps' command Ray Bellis
` (11 preceding siblings ...)
1994-07-30 14:06 ` Joseph B. Gurman
@ 1994-08-04 18:44 ` Carl J Appellof
12 siblings, 0 replies; 16+ messages in thread
From: Carl J Appellof @ 1994-08-04 18:44 UTC (permalink / raw)
In article <RPB.94Jul25150438@axp01.ox.ac.uk> rpb@psy.ox.ac.uk (Ray Bellis) writes:
> If you use the `ps' command, the width of the output is automatically
> truncated to the width of the terminal *even* if the output isn't
> going to the terminal.
Try 'ps axww', which will produce unlimited width output.
--
Carl J. Appellof (cja@chmist.zso.dec.com)
Storage Management Group
POLYCENTER NetWorker Save and Restore
Digital Equipment Corporation
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~1994-08-04 18:44 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-07-25 14:04 Misfeature in DEC OSF/1 `ps' command Ray Bellis
1994-07-25 14:47 ` Steve Tate
1994-07-25 15:12 ` Alan Lehotsky
1994-07-25 15:19 ` Mark Bartelt
1994-07-25 15:36 ` Ray Bellis
1994-07-25 17:47 ` Andrew Gallatin
1994-07-25 19:34 ` Frank Wortner
1994-07-26 8:56 ` Horst Luehrsen
1994-07-26 9:50 ` Robin Hourahane (x8130)
1994-08-01 7:48 ` Ray Bellis
1994-07-26 11:45 ` Jon Mauney
1994-07-26 12:45 ` Larry Cannell
1994-07-26 19:49 ` Mary Walker
1994-07-29 8:30 ` Jean-Luc Bernard
1994-07-30 14:06 ` Joseph B. Gurman
1994-08-04 18:44 ` Carl J Appellof
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox