From: Chris Wright <chris@wirex.com>
To: Soeren Sonnenburg <sonnenburg@informatik.hu-berlin.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: getting a programs ENV via ptrace ?
Date: Mon, 29 Apr 2002 01:42:37 -0700 [thread overview]
Message-ID: <20020429014237.C8654@figure1.int.wirex.com> (raw)
In-Reply-To: <1020068756.5050.7.camel@sun>
* Soeren Sonnenburg (sonnenburg@informatik.hu-berlin.de) wrote:
> Hi...
>
> I am looking for a way of getting the environment variables of a running
> process.
>
> Is this possible by using the ptrace interface somehow ?
>
> Thanks for any suggestions / pointers are welcome !
What about just using /proc/[pid]/environ?
cheers,
-chris
next prev parent reply other threads:[~2002-04-29 8:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-29 8:25 getting a programs ENV via ptrace ? Soeren Sonnenburg
2002-04-29 8:37 ` Trond Myklebust
2002-04-29 8:38 ` Russell King
2002-04-29 8:42 ` Chris Wright [this message]
2002-04-29 10:18 ` Alan Cox
2002-04-29 19:18 ` Kernel 2.4.x and ASUS A7M266-D Marco Schwarz
2002-04-29 19:35 ` Nicolae P. Costescu
2002-04-30 1:27 ` David Shirley
2002-04-30 23:53 ` Alan Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020429014237.C8654@figure1.int.wirex.com \
--to=chris@wirex.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sonnenburg@informatik.hu-berlin.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox