caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] using Unix.create_process and Unix.waitpid
@ 2003-02-04 18:18 Oliver Bandel
  2003-02-05  0:33 ` Shawn Wagner
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Bandel @ 2003-02-04 18:18 UTC (permalink / raw)
  To: caml-list

Hello,

I tried to use Unix.create_process but I don't know how to use it.

I only need an Unix.popen but there is no Unix.popen in the
library.

So I think I may use Unix.create_process, even if it is
oversized for my needs.

Q1: How to use Unix.create_process for e.g. reading the
    result of the ls-command, or (what I need) the result
    of btreeop?

Q2: Or does it makes more sense to write a module, where
    I write a Ocaml-function, which binds the popen(3)
    call to a unix-function? (Could this external program
    be inserted into the Unix-module by some of the
    module-operations, so that I could call a Unix.popen
    on a self-defined (non standard-lib) function call?


Ciao,
   Oliver

-------------------
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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] using Unix.create_process and Unix.waitpid
  2003-02-04 18:18 [Caml-list] using Unix.create_process and Unix.waitpid Oliver Bandel
@ 2003-02-05  0:33 ` Shawn Wagner
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn Wagner @ 2003-02-05  0:33 UTC (permalink / raw)
  To: caml-list

On Tue, Feb 04, 2003 at 07:18:16PM +0100, Oliver Bandel wrote:
> Hello,
> 
> I tried to use Unix.create_process but I don't know how to use it.
> 
> I only need an Unix.popen but there is no Unix.popen in the
> library.
> 
> So I think I may use Unix.create_process, even if it is
> oversized for my needs.
> 
> Q1: How to use Unix.create_process for e.g. reading the
>     result of the ls-command, or (what I need) the result
>     of btreeop?

I'd use Unix.open_process_in instead of create_process.

-- 
Shawn Wagner
shawnw@speakeasy.org
-------------------
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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-02-05  0:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-04 18:18 [Caml-list] using Unix.create_process and Unix.waitpid Oliver Bandel
2003-02-05  0:33 ` Shawn Wagner

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).