From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA26658; Mon, 13 Aug 2001 16:27:46 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA26844 for ; Mon, 13 Aug 2001 16:27:45 +0200 (MET DST) Received: from fichte.ai.univie.ac.at (fichte.ai.univie.ac.at [131.130.174.156]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f7DERiv00104 for ; Mon, 13 Aug 2001 16:27:44 +0200 (MET DST) Received: (from markus@localhost) by fichte.ai.univie.ac.at (8.9.3/8.9.3/Debian 8.9.3-21) id QAA18963; Mon, 13 Aug 2001 16:27:37 +0200 Date: Mon, 13 Aug 2001 16:27:37 +0200 From: Markus Mottl To: Berke Durak Cc: caml-list@inria.fr Subject: Re: [Caml-list] No way to get list of all environment variables ? Message-ID: <20010813162737.A14338@fichte.ai.univie.ac.at> References: <20010813150218.C31929@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010813150218.C31929@localhost.localdomain>; from berke@altern.org on Mon, Aug 13, 2001 at 15:02:18 +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, 13 Aug 2001, Berke Durak wrote: > I'd like to get a list of all environment variables defined, to be > able to pass them, suitably modified or at least augmented, to an > execvpe'd process. Is there a way to do this ? Sure: "Unix.environment ()" gives you the current process environment as a string array, "Unix.execvpe" can be passed such an array (possibly manipulated) as argument. Regards, Markus Mottl -- Markus Mottl markus@oefai.at Austrian Research Institute for Artificial Intelligence http://www.oefai.at/~markus ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr