Joerg Schilling schrieb:
> Ralf <[email protected]> wrote:
> 
>> Is there any way to print the list of environment variables of a running 
>> process ?
>> In linux i could use ps -ueww or cat /proc/<nnn>/environ, is there a similar 
>> feature in opensolaris ?
> 
> This is incorrect syntax ;-)
> 
> The old historic UNIX ps that prints environment vars does not use '-' to
> start options.
> 
> Sinply use:
> 
> ps aeww
> 
> Jörg
> 

> uname -a
SunOS dev00sol64 5.10 Generic_118833-33 sun4u sparc
> /usr/bin/ps aeww
usage: ps [ -aAdeflcjLPyZ ] [ -o format ] [ -t termlist ]
        [ -u userlist ] [ -U userlist ] [ -G grouplist ]
        [ -p proclist ] [ -g pgrplist ] [ -s sidlist ] [ -z zonelist ]
  'format' is one or more of:
        user ruser group rgroup uid ruid gid rgid pid ppid pgid sid
taskid ctid
        pri opri pcpu pmem vsz rss osz nice class time etime stime zone
zoneid
        f s c lwp nlwp psr tty addr wchan fname comm args projid project
pset

I guess you are referring to /usr/ucb/ps of Solaris 10. OpenSolaris' ps
doesn't emit the environement with auww...

Anyway, I'd prefer
pargs -e <pid>

- Thomas
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to