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 08:15:46 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!swrinde!hookup!news.sprintlink.net!sundog.tiac.net!max.tiac.net!lehotsky From: lehotsky@max.tiac.net (Alan Lehotsky) Newsgroups: comp.sys.dec Subject: Re: Misfeature in DEC OSF/1 `ps' command Date: 25 Jul 1994 15:12:39 GMT Organization: The Internet Access Company Message-ID: <310kp7$4hu@sundog.tiac.net> References: NNTP-Posting-Host: max.tiac.net 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. 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