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,HTML_MESSAGE autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 255CABC69 for ; Wed, 22 Aug 2007 23:32:07 +0200 (CEST) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.230]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l7MLW6Tj001552 for ; Wed, 22 Aug 2007 23:32:06 +0200 Received: by nz-out-0506.google.com with SMTP id x7so188388nzc for ; Wed, 22 Aug 2007 14:32:05 -0700 (PDT) Received: by 10.143.10.15 with SMTP id n15mr142376wfi.1187818323727; Wed, 22 Aug 2007 14:32:03 -0700 (PDT) Received: by 10.142.80.4 with HTTP; Wed, 22 Aug 2007 14:32:03 -0700 (PDT) Message-ID: <28fa90930708221432o196d1e43ld8d6b4920556e6dc@mail.gmail.com> Date: Wed, 22 Aug 2007 14:32:03 -0700 From: "Luca de Alfaro" To: "Dave Benjamin" Subject: Re: [Caml-list] commands.getoutput () in ocaml? Cc: caml-list@yquem.inria.fr In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_157492_13629132.1187818323717" References: <28fa90930708221256t497e8356k84861abd6b2e91b8@mail.gmail.com> X-Miltered: at discorde with ID 46CCAB56.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 translated:01 translated:01 2007,:98 2007,:98 sourceforge:01 sourceforge:01 wrote:01 wrote:01 caml-list:01 benjamin:01 benjamin:01 luca:04 luca:04 ------=_Part_157492_13629132.1187818323717 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks, this is truly wonderful! I wish more of the things we are discussing and discovering in this email list would make it to the official Ocaml site... Luca On 8/22/07, Dave Benjamin wrote: > > 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 > ------=_Part_157492_13629132.1187818323717 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks, this is truly wonderful!

I wish more of the things we are discussing and discovering in this email list would make it to the official Ocaml site... 

Luca

On 8/22/07, Dave Benjamin <dave@ramenlabs.com> wrote:
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

------=_Part_157492_13629132.1187818323717--