From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,5a0234ec8955e972 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-07-25 10:54:45 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!gatech!news-feed-1.peachnet.edu!news.duke.edu!gallatin From: gallatin@isds.duke.edu (Andrew Gallatin) Newsgroups: comp.sys.dec Subject: Re: Misfeature in DEC OSF/1 `ps' command Date: 25 Jul 1994 17:47:57 GMT Organization: Duke University, Durham, N.C. Message-ID: <310tsd$q3g@news.duke.edu> References: NNTP-Posting-Host: davinci.isds.duke.edu X-ORIGINAL-NEWSGROUPS: comp.sys.dec,comp.unix.osf.osf1 Cc: In article , 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. 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 # ##############################################################################