From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AWL autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id A6FE9BC69 for ; Wed, 22 Aug 2007 22:39:15 +0200 (CEST) Received: from tenhost.net (tenhost.net [64.246.28.52]) by concorde.inria.fr (8.13.6/8.13.6) with SMTP id l7MKdBxt008547 for ; Wed, 22 Aug 2007 22:39:15 +0200 Received: (qmail 31650 invoked by uid 502); 22 Aug 2007 15:11:47 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 22 Aug 2007 15:11:47 -0500 Date: Wed, 22 Aug 2007 15:11:47 -0500 (CDT) From: Dave Benjamin X-X-Sender: ramen@tenhost.net To: Luca de Alfaro Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] commands.getoutput () in ocaml? In-Reply-To: <28fa90930708221256t497e8356k84861abd6b2e91b8@mail.gmail.com> Message-ID: References: <28fa90930708221256t497e8356k84861abd6b2e91b8@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Miltered: at concorde with ID 46CC9EEF.004 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 translated:01 2007,:98 sourceforge:01 wrote:01 caml-list:01 benjamin:01 luca:04 chapter:04 wed:06 examples:07 perl:09 equivalent:09 dave:09 On Wed, 22 Aug 2007, Luca de Alfaro wrote: > I am looking for a quick way to do the equivalent of > s = commands.getoutput ("ls " + name + "*") > in Ocaml. I have translated many of the examples from the Perl Cookbook for the Process Management and Communication chapter of the OCaml PLEAC. This is one of the topics covered. http://pleac.sourceforge.net/pleac_ocaml/processmanagementetc.html Dave