From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id B0891BBAF for ; Wed, 4 Nov 2009 14:58:30 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkMCADYX8UrRVdvWkGdsb2JhbACbHT8BAQEBCQkMBxMDsHEKgS+GPIhoAQMDBYQ4BIk1 X-IronPort-AV: E=Sophos;i="4.44,680,1249250400"; d="scan'208";a="36157136" Received: from mail-ew0-f214.google.com ([209.85.219.214]) by mail2-smtp-roc.national.inria.fr with ESMTP; 04 Nov 2009 14:58:30 +0100 Received: by ewy10 with SMTP id 10so7008165ewy.9 for ; Wed, 04 Nov 2009 05:58:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=DdJNnngiItHuBzAa5elVzqDtF9QIG5EYv6GpVfd9qus=; b=qOEdDqdo0Xzz+CKPPTWs8MuZMLDMpLlkkrGScOWrmwVwQwFO29jHz5Skmd3brla182 8gXo8pocDghbcjRAH2pJuMOWUmrcwfvQmjwrbpK9yhBfIeoUif+eRZ+JCI4ggtoPVdd7 RqK3MmZeblZDozEb4Q3vJpIBTK/42GkfcJDRc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=t+V7ckHYMmBsxw/DWNjsuvzls/XYAdg3wLPwaGH1YYVPR0+cAdnp4RAkpqKQEHK9Xj rkSrtZm48T2cF0xA1FH1Hx3ThSvSQNnAeztG3eM0dKsSmuCoGhKtcKJPg+IozKCYyqET QznsKazV/sK480SmBVnCipwZftRqk+wrlRaLs= Received: by 10.216.87.5 with SMTP id x5mr478060wee.75.1257343110292; Wed, 04 Nov 2009 05:58:30 -0800 (PST) Received: from ?172.17.1.11? (papillon.metalscan.fr [212.73.210.234]) by mx.google.com with ESMTPS id g9sm3274575gvc.25.2009.11.04.05.58.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 04 Nov 2009 05:58:29 -0800 (PST) Message-ID: <4AF18883.4050803@gmail.com> Date: Wed, 04 Nov 2009 14:58:27 +0100 From: Matthieu Dubuget Reply-To: matthieu.dubuget@gmail.com User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Alain Frisch Cc: caml-list@inria.fr Subject: Re: [Caml-list] Howto execute a command without the "cmd" windows opening? References: <4AF16258.6010508@gmail.com> <4AF171E9.8020300@frisch.fr> In-Reply-To: <4AF171E9.8020300@frisch.fr> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; matthieu:01 dubuget:01 matthieu:01 dubuget:01 howto:01 howto:01 frisch:01 frisch:01 waitpid:01 stdin:01 stdout:01 stderr:01 2009:98 wrote:01 unix:01 -------- Message original -------- Sujet : Re: [Caml-list] Howto execute a command without the "cmd" windows opening? De : Alain Frisch 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