This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Getting environment variables


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]