Getting environment variables
Mark Wielaard
mjw@redhat.com
Sun Nov 4 16:29:00 GMT 2012
On Sat, Nov 03, 2012 at 07:35:22PM -0700, fchirigati wrote:
> How can get the environment variables accessed during a execve call?
> I could not find any information with respect to that.
>
> I would like to know which environment variables are used when executing a
> certain command line.
There is the env_var() function to access individual environment variables.
See http://sourceware.org/systemtap/tapsets/API-env-var.html
You might want to look at the code in the context-envvar.stp tapset to see
how to get at other information.
Cheers,
Mark
More information about the Systemtap
mailing list