Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Getting environment variable of a process

by fullermd (Priest)
on Dec 30, 2008 at 14:24 UTC ( [id://733253]=note: print w/replies, xml ) Need Help??


in reply to Getting environment variable of a process

is there a way in perl to get the env variables generated by appln s/w may be by giving porcess ID or appln name?

There's no portable way in *nix period to get the environment of a process other than yourself.

A glance shows some things on CPAN like Shell::GetEnv that may let you run subprocesses and get their info, but I don't know how well that would work with long-running processes, and doesn't help with non-descendant processes anyway.

edit: markup fix

  • Comment on Re: Getting environment variable of a process

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://733253]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-26 03:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found