[Gllug] ps width on Solaris

Steve Cobrin cobrin at highbury.net
Tue Nov 26 12:07:36 UTC 2002


On Tuesday 26 November 2002 10:26, Tethys wrote:
> Alain Williams writes:
> >Just the Essex (note capitalisation - since we are being pedantic)
> >localisation of the "y'know" that you hear elsewhere -- equally
> >grating after the 20th incantation.
>
> I've even heard both in the same sentence: "I was out down Romford
> last Saturday, innit y'know".
>
> Anyway, in a vain attempt to drag this on topic, does anyone know
> how I can get a ps on Solaris to not truncate the output at 178
> columns? Unlike Linux, "ps -efww" doesn't work (the -w flag isn't
> supported on Solaris). The only alternative I can see is to use
> /usr/ucb/ps, but I'm sure there must be some way of doing it with the
> native ps.
>
> Any ideas?
>
> Tet

Solaris's "ps" supports the ability to define what column you want to 
see displayed, so you don't have to see unecessary columns, which might 
allow you to see the complete text of interest. Use the -o flag, 
consult the man pages for more info.


The command:
example% ps -o user,pid,ppid=MOM -o args

writes the following in the POSIX locale:
USER  PID   MOM   COMMAND
helene  34    12   ps -o uid,pid,ppid=MOM -o args


 -- Steve

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list