Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] using Unix.create_process and Unix.waitpid
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-02-04 (18:45)
From: oliver@f...
Subject: [Caml-list] using Unix.create_process and Unix.waitpid

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

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?


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: