caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Olivier Andrieu <andrieu@ijm.jussieu.fr>
To: martin_jambon@emailuser.net
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Unix.open_process "cat"
Date: Sat, 15 May 2004 18:21:31 +0200 (CEST)	[thread overview]
Message-ID: <20040515.182131.27957605.oandrieu@nerim.net> (raw)
In-Reply-To: <Pine.LNX.4.44.0405151754290.1749-100000@localhost>

 Martin Jambon [Sat, 15 May 2004]:
 > Hello,
 > 
 > I would like to apply some external filters (e.g. cat, grep, sed, ...)
 > that will terminate successfully only if they reach an
 > end-of-file. For this I would like to use Unix.open_process, but I need to
 > close the output first (= the input of the command).
 > Is it legal to use close_out on the out_channel returned by
 > Unix.open_process, and later use Unix.close_process on the pair of
 > channels?

Yes, Unix.close_process will call close_out on the channel again but
this is safe.

-- 
   Olivier

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


      reply	other threads:[~2004-05-15 17:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-15 11:13 Martin Jambon
2004-05-15 16:21 ` Olivier Andrieu [this message]

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=20040515.182131.27957605.oandrieu@nerim.net \
    --to=andrieu@ijm.jussieu.fr \
    --cc=caml-list@inria.fr \
    --cc=martin_jambon@emailuser.net \
    /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).