Problem with 'ps' in System V

Dave Hammond daveh at marob.masa.com
Tue Sep 12 04:37:00 AEST 1989


In article <55 at tubbs.UUCP> root at 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 at marob.masa.com



More information about the Comp.unix.xenix mailing list