root@tubbs.UUCP (Chris Moustakis) (09/10/89)
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. Is there any source code available for 'ps' so that the description field can be truncated.?? chris -- Chris Moustakis | ..!<smart-host>!ddsw1!olsa99!tabbs!tubbs!chris @ | "Those who think they know it all ... The Ultimate | really annoy those of us who do . " BBS | (:-) (-:)
daveh@marob.masa.com (Dave Hammond) (09/12/89)
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