public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* Getting environment variables
@ 2012-11-04  2:35 fchirigati
  2012-11-04 16:29 ` Mark Wielaard
  0 siblings, 1 reply; 3+ messages in thread
From: fchirigati @ 2012-11-04  2:35 UTC (permalink / raw)
  To: systemtap

Hi,

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.

Thanks!



--
View this message in context: http://sourceware-org.1504.n7.nabble.com/Getting-environment-variables-tp211993.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Getting environment variables
  2012-11-04  2:35 Getting environment variables fchirigati
@ 2012-11-04 16:29 ` Mark Wielaard
  2012-11-04 21:51   ` fchirigati
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Wielaard @ 2012-11-04 16:29 UTC (permalink / raw)
  To: fchirigati; +Cc: systemtap

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Getting environment variables
  2012-11-04 16:29 ` Mark Wielaard
@ 2012-11-04 21:51   ` fchirigati
  0 siblings, 0 replies; 3+ messages in thread
From: fchirigati @ 2012-11-04 21:51 UTC (permalink / raw)
  To: systemtap

Thank you very much, Mark!
This is exactly what I need!

Best regards,
Fernando.



--
View this message in context: http://sourceware-org.1504.n7.nabble.com/Getting-environment-variables-tp211993p212039.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-04 21:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-04  2:35 Getting environment variables fchirigati
2012-11-04 16:29 ` Mark Wielaard
2012-11-04 21:51   ` fchirigati

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).