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 TAA11659; Tue, 4 Feb 2003 19:45:04 +0100 (MET) 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 TAA11722 for ; Tue, 4 Feb 2003 19:45:03 +0100 (MET) Received: from hirsch.in-berlin.de (hirsch.in-berlin.de [192.109.42.6]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h14Ij2P11009 for ; Tue, 4 Feb 2003 19:45:02 +0100 (MET) Received: from hirsch.in-berlin.de (localhost [127.0.0.1]) by hirsch.in-berlin.de (8.12.1/8.12.1/Debian -2) with ESMTP id h14Ij207016858 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Tue, 4 Feb 2003 19:45:02 +0100 Received: from first.UUCP (uucp@localhost) by hirsch.in-berlin.de (8.12.1/8.12.1/Debian -2) with UUCP id h14Ij1x2016847 for inria.fr!caml-list; Tue, 4 Feb 2003 19:45:01 +0100 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: inria.fr!caml-list Received: by first.in-berlin.de via sendmail from stdin id (Debian Smail3.2.0.114) Tue, 4 Feb 2003 19:18:16 +0100 (CET) From: oliver@first.in-berlin.de (Oliver Bandel) Date: Tue, 4 Feb 2003 19:18:16 +0100 To: caml-list@inria.fr Subject: [Caml-list] using Unix.create_process and Unix.waitpid Message-ID: <20030204181815.GA356@first.in-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, I tried to use Unix.create_process but I don't know how to use it. I only need an Unix.popen but there is no Unix.popen in the library. So I think I may use Unix.create_process, even if it is oversized for my needs. Q1: How to use Unix.create_process for e.g. reading the result of the ls-command, or (what I need) the result of btreeop? Q2: Or does it makes more sense to write a module, where I write a Ocaml-function, which binds the popen(3) call to a unix-function? (Could this external program be inserted into the Unix-module by some of the module-operations, so that I could call a Unix.popen on a self-defined (non standard-lib) function call? Ciao, Oliver ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners