AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  How can root read a user's environment variable

    Posted 05/27/12 11:27 PM

    Originally posted by: SystemAdmin


    On AIX 5.3, is it possible for root to read the environment variables used by process? I had thought that these might be stored in /proc, but I did not have any success finding them in here.

    We use an application which stores the database instance information in environment variables; and, if I could read these variables, then I could identify which database a user was using. Any ideas?
    #AIX-Forum


  • 2.  Re: How can root read a user's environment variable

    Posted 05/28/12 12:25 AM

    Originally posted by: j.gann


    
    ps eww $PID
    


    Joachim Gann
    #AIX-Forum


  • 3.  Re: How can root read a user's environment variable

    Posted 05/29/12 01:04 AM

    Originally posted by: SystemAdmin


    Thanks! You got me on the right track.

    It was "ps auxeww" that gave me the details I was looking for; but the "eww" was new to me, and very useful.
    #AIX-Forum