Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: gallatin@isds.duke.edu (Andrew Gallatin)
Subject: Re: Misfeature in DEC OSF/1 `ps' command
Date: 25 Jul 1994 17:47:57 GMT	[thread overview]
Message-ID: <310tsd$q3g@news.duke.edu> (raw)
In-Reply-To: RPB.94Jul25150438@axp01.ox.ac.uk

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			     #
##############################################################################


  parent reply	other threads:[~1994-07-25 17:47 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox