Re: getting a programs ENV via ptrace ?

From: Trond Myklebust (trond.myklebust@fys.uio.no)
Date: Mon Apr 29 2002 - 03:37:26 EST


>>>>> " " == 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Apr 30 2002 - 22:00:16 EST