Tech Tip: How to verify the environment of a running process on Solaris

Document created by kk_sup Employee on Sep 9, 2015Last modified by SamCreek on Dec 17, 2016
Version 2Show Document
  • View in full screen mode

To verify the environment variables of a running process on Solaris run:


pargs -e <$pid of process>



# ps -ef | grep nhiPoller

root  1538  1490   0 10:56:02 ?           0:52 /opt/eHealth/bin/sys/nhiPoller


# pargs -e 1538 | less

1538:   /opt/eHealth/bin/sys/nhiPoller
envp[0]: Gt\3503\330
envp[1]: GS_LIB=/opt/eHealth/lib/gs:/opt/eHealth/lib/gs/fonts
envp[2]: HHHOME=/opt/eHealth/help
envp[3]: HHLOCAL=/opt/eHealth/help
envp[4]: HHPATH=/opt/eHealth/help/bin
envp[5]: HOHPATH=/opt/eHealth/help/files