caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Malcolm Matalka <mmatalka@gmail.com>
To: Florent Monnier <monnier.florent@gmail.com>
Cc: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] how to wrap a command line call correctly?
Date: Wed, 21 Nov 2012 16:19:15 -0500	[thread overview]
Message-ID: <87lidubqng.fsf@li195-236.members.linode.com> (raw)
In-Reply-To: <CAE1DttDjgR37DRSJZ_L-exgx+rbepM3g_W4whajtNyGVWUdFoA@mail.gmail.com> (Florent Monnier's message of "Wed, 21 Nov 2012 20:53:40 +0100")

You can use Jane St Async or Lwt, but your application needs to work
within that context for the best results (although I'm sure you can
do something clever here).  Otherwise you probably need to use the Unix
model or similar and write your own little select loop.  Or use threads
perhaps.

/M

Florent Monnier <monnier.florent@gmail.com> writes:

> Hi,
>
> I would like to know how to wrap a command line call correctly?
>
> I particular keep the same order of the output messages for stderr and
> stdout correctly, how to handle the cases when there is something on
> stdin or not, etc.
>
> Thanks

  reply	other threads:[~2012-11-21 21:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-21 19:53 Florent Monnier
2012-11-21 21:19 ` Malcolm Matalka [this message]
2012-11-21 22:41 ` AW: " Gerd Stolpmann

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=87lidubqng.fsf@li195-236.members.linode.com \
    --to=mmatalka@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=monnier.florent@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).