Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!philmtl!philabs!phri!marob!daveh From: daveh@marob.masa.com (Dave Hammond) Newsgroups: comp.unix.xenix Subject: Re: Problem with 'ps' in System V Message-ID: <250BFB4D.1C43@marob.masa.com> Date: 11 Sep 89 18:37:00 GMT References: <55@tubbs.UUCP> Reply-To: daveh@marob.masa.com (Dave Hammond) Organization: ESCC, New York City Lines: 19 In article <55@tubbs.UUCP> root@tubbs.UUCP (Chris Moustakis) writes: >I am running SCO Xenix System V 2.3.1 and have the following problem with >'ps'. > >When getting a full description of processes running (ps -ef), if the command >line is too long of any process running like the logger, the output is truncatedone character too late. So you end up getting a single character on the next >line. This is not too serious, but me, fussy as I am, want everything to be >perfect. > Example pipelines which will trim the 'ps' output to 70 columns: ps [args] | cut -c1:70 ps [args] | awk '{T=substr($0,1,70); print T}' - -- Dave Hammond daveh@marob.masa.com