Version française
Home     About     Download     Resources     Contact us    
Browse thread
Howto execute a command without the "cmd" windows opening?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Matthieu Dubuget <matthieu.dubuget@g...>
Subject: Re: [Caml-list] Howto execute a command without the "cmd" windows opening?
-------- Message original --------
Sujet : Re: [Caml-list] Howto execute a command without the "cmd"
windows opening?
De : Alain Frisch <alain@frisch.fr>
Pour : matthieu.dubuget@gmail.com
Date : Wed Nov 04 2009 13:22:01 GMT+0100 (CET)
> Matthieu Dubuget wrote:
>> Is there any way to run a program and get the process status without
>> using cmd.exe ?
>
> Did you try Unix.create_process?
>
> Alain
>
>
Thanks to Alain and David.

Something like


Unix.waitpid []
                (Unix.create_process
                   external_prog args
                   Unix.stdin Unix.stdout Unix.stderr)

does it.

Salutations

Matt