public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Soeren Sonnenburg <sonnenburg@informatik.hu-berlin.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: getting a programs ENV via ptrace ?
Date: 29 Apr 2002 10:37:26 +0200	[thread overview]
Message-ID: <shsvgaaew8p.fsf@charged.uio.no> (raw)
In-Reply-To: <1020068756.5050.7.camel@sun>

>>>>> " " == Soeren Sonnenburg <sonnenburg@informatik.hu-berlin.de> writes:

     > Hi...  I am looking for a way of getting the environment
     > variables of a running process.

cat /proc/<pid>/environ | tr '\0' '\n'

Cheers,
  Trond

  reply	other threads:[~2002-04-29  8:37 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 [this message]
2002-04-29  8:38 ` Russell King
2002-04-29  8:42 ` Chris Wright
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=shsvgaaew8p.fsf@charged.uio.no \
    --to=trond.myklebust@fys.uio.no \
    --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