From: " Dr. Axel Poigné " <axel.poigne@iais.fraunhofer.de>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] commands.getoutput () in ocaml?
Date: Thu, 23 Aug 2007 17:24:29 +0200 [thread overview]
Message-ID: <02125A45-BC89-4B44-B3A2-6BCC88B6FC37@iais.fraunhofer.de> (raw)
In-Reply-To: <Pine.LNX.4.63.0708221509200.13687@tenhost.net>
>
>
>> 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
>
There is a problem with the read_process_lines function though: if
the output buffer gets too long the process does not return to close
the input channel. Consequence is that the spawning process is blocked.
That's a problem I do not know how to solve.
Axel
next prev parent reply other threads:[~2007-08-23 15:29 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-22 19:56 Luca de Alfaro
2007-08-22 20:05 ` [Caml-list] " malc
2007-08-22 20:10 ` malc
2007-08-22 20:11 ` Dave Benjamin
2007-08-22 21:32 ` Luca de Alfaro
2007-08-22 22:11 ` Yitzhak Mandelbaum
2007-08-22 22:13 ` Daniel Bünzli
2007-08-22 22:35 ` Olivier Andrieu
2007-08-22 23:04 ` Eric Cooper
2007-08-22 22:52 ` Dave Benjamin
2007-08-23 4:03 ` Dave Benjamin
2007-08-23 17:07 ` Eric Cooper
2007-08-23 15:24 ` Dr. Axel Poigné [this message]
2007-08-22 20:17 ` Brian Hurt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=02125A45-BC89-4B44-B3A2-6BCC88B6FC37@iais.fraunhofer.de \
--to=axel.poigne@iais.fraunhofer.de \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox