The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 06-12-2009
obbzung obbzung is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 1
Exclamation How can I get environment of running process?!!

In Solaris, here is the command that use to get the environments of running process.

pargs -e [pid]

For example:

/export/home/admin> pargs -e 6682
6682: /storage1/opt/wls103/jdk160_05/bin/java -client -Xms256m -Xmx512m -XX:CompileTh
envp[0]: XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt
envp[1]: NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat
envp[2]: ANT_CONTRIB=/storage1/opt/wls103/modules/net.sf.antcontrib_1.0.0.0_1-0b2
envp[3]: ANT_HOME=/storage1/opt/wls103/modules/org.apache.ant_1.6.5
envp[4]: ARDIR=/storage1/opt/wls103/wlserver_10.3/server/lib
envp[5]: BEA_HOME=/storage1/opt/wls103
envp[6]: BEA_JAVA_HOME=

Is there any command like this in HP-UX?

Or, anyway to get the env of running proc?

Could you all please give me a good recommendation?

I have been finding this for 2 weeks.

Thank you.