Berkeley CSUA MOTD:Entry 50541
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2024/11/23 [General] UID:1000 Activity:popular
11/23   

2008/7/11-13 [Computer/SW/OS/Misc] UID:50541 Activity:kinda low
7/11    Does anyone know a way to find out all the environment variables for
        a running process aside from ps?  I'm doing this on AIX, and while
        ps eww <pid> gives some of the environment vars, it seems to stop at
        2000 characters or so.
        \_ have you tried ps ewww? That works in some flavors of Unix.
        \- agree with ps -e. otherwise, on AssOS, /proc/<pid>/environ ...
           which I believe is a NULL delimited list (so some unix tools/
           functions may have issue operating on it, unless you map the NULs
           to something else). Not portable. i dont know anything about AIX
           any more. --psb
           \_ Lucky. AIX is crap. -op.
                     \- that, i knew :-) [although GPFS is really neat].