English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
commands.getoutput () in ocaml?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-08-22 (20:39)
From: Dave Benjamin <dave@r...>
Subject: Re: [Caml-list] commands.getoutput () in ocaml?
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