Messages in this thread | | | Date | Mon, 29 Apr 2002 01:42:37 -0700 | From | Chris Wright <> | Subject | Re: getting a programs ENV via ptrace ? |
| |
* 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 - 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/
| |