Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find out a running process environment variables

Status
Not open for further replies.

lseboek1

Technical User
Nov 20, 2002
6
CH
Hi,

I have a unix process running. I'd like to find out the value of some environment variables which were set at the process starting time. I don't know whether it's possible or not.

rgrds,
lseboek1
 
I think it depends on the flavour of unix you are using but on Solaris something like /usr/ucb/ps -euxwww| more will show processes with their associated environment
 
Thanks the answer.
It works fine on Solaris. Is there any way to get the same results on HP and AIX?
 
I think its the use of the w flag more than once thats the key. So just make sure the other flags are valid and you should be ok. FYI all the w flag does is allow arbitrary width output for the process.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top