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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id B3A89BBAF for ; Wed, 4 Nov 2009 12:54:20 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkQCALD58ErRVdvWkGdsb2JhbACEcpYqPwEBAQEJCQwHEwOvbygKgS+GXIhoAQMDBYEtgjhTBIFlh1A X-IronPort-AV: E=Sophos;i="4.44,679,1249250400"; d="scan'208";a="37527963" Received: from mail-ew0-f214.google.com ([209.85.219.214]) by mail3-smtp-sop.national.inria.fr with ESMTP; 04 Nov 2009 12:54:20 +0100 Received: by ewy10 with SMTP id 10so6890611ewy.9 for ; Wed, 04 Nov 2009 03:54:19 -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:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=YsJM80qNdnYvNWbqxVLnGPdY3l2cvp8D0hMDab1oqZc=; b=Q8S2YH2MvO8AoBuIbq2oEQc82LFzrAd8I5nO3VeRnsr9tFMfDh6mcoFK0H/v2w3GNs bOQ8SgfcQQakc+NwmXZ/ggRtBhZieVqAK2r0+L7AfjkPzC6gAoVwB8MvSOeyWHA6ki2U t4RY27sO156fbdxfe898c/WMBBMyjKH+A7Ojc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=scodDawUrd+M+s4XxEFGewcD+nRki4ppm0o66k0UL7wmNHYJ43AOwzwjRNVrUsNu3W zIg3MLACK9BTzLynTq0s9zv17h4QvslglLK5Qp7YX6b+jT3MWivQvY+vKYs4hrw/sT7Q 1pu0Pnmasv3K/Umz9Gg+daBZnTSHyHV1i085M= Received: by 10.216.90.12 with SMTP id d12mr477201wef.64.1257335659669; Wed, 04 Nov 2009 03:54:19 -0800 (PST) Received: from ?172.17.1.11? (papillon.metalscan.fr [212.73.210.234]) by mx.google.com with ESMTPS id g11sm3028059gve.20.2009.11.04.03.54.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 04 Nov 2009 03:54:18 -0800 (PST) Message-ID: <4AF16B69.8080304@gmail.com> Date: Wed, 04 Nov 2009 12:54:17 +0100 From: Matthieu Dubuget Reply-To: matthieu.dubuget@gmail.com User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: [Caml-list] Howto execute a command without the "cmd" windows opening? References: <4AF16258.6010508@gmail.com> <021001ca5d41$20175d60$60461820$@allsopp@metastack.com> <4AF16474.5070104@gmail.com> In-Reply-To: <4AF16474.5070104@gmail.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; matthieu:01 dubuget:01 matthieu:01 dubuget:01 howto:01 stub:01 ocaml-win:01 stub:01 caml-list:01 api:02 api:02 parameters:03 exit:04 null:05 long:06 >> It's been on my todo list to wrap the CreateProcess Win32 API function= [1] in >> a C stub function - someone else may have done this (possibly in >> ocaml-win32[2] or something like that), though. The API is very simple= (most >> parameters will be NULL) so the stub would not take long to write. >> >> =20 >> =20 > Thank you David. I'll go this way, then. > > Matt > =20 If i find a way to read the exit status of the process=E2=80=A6 Matt