Software >> OS >> Unix >> Solaris >> 11 >> How to find out the environment variables used by a process

# pargs -e process-id

if we don't know the process id use pgrep and obtain the PID by either

-f  <pattern> : to search by process argument

-u <uidlist> : to search by uid