From: Laszlo Nemeth <laszlo@ropas.kaist.ac.kr>
To: Damien.Doligez@inria.fr
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Pipes in 3.01
Date: Sat, 31 Mar 2001 11:12:09 +0900 (KST) [thread overview]
Message-ID: <200103310212.LAA00721@ropas.kaist.ac.kr> (raw)
In-Reply-To: <200103301133.NAA0000003563@beaune.inria.fr> (message from Damien Doligez on Fri, 30 Mar 2001 13:33:53 +0200 (MET DST))
Thanks for all those (Damien, Francois, Fabrice) who replied and
pointed out my misunderstanding of IPC. Nevertheless, I did not manage
to make it work with 'create_process'. Instead, I started using
'open_process' which works wonderfully.
Thanks again. Laszlo
--- the working snippet:
module DaVinciAPI : DAVINCIAPI =
struct
exception DaVinciInitError
let daVinci () =
begin try
let (dIn, dOut) = Unix.open_process "daVinci -pipe"
and buf = String.create 10 in
let len = Unix.read (Unix.descr_of_in_channel dIn) ~buf ~pos:0 10
in
buf
with Unix.Unix_error _ -> raise DaVinciInitError
end
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr
next prev parent reply other threads:[~2001-03-31 2:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-30 11:33 Damien Doligez
2001-03-31 2:12 ` Laszlo Nemeth [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-03-30 3:43 Laszlo Nemeth
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=200103310212.LAA00721@ropas.kaist.ac.kr \
--to=laszlo@ropas.kaist.ac.kr \
--cc=Damien.Doligez@inria.fr \
--cc=caml-list@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