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 53010BBAF for ; Wed, 4 Nov 2009 12:15:49 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsABALjx8EpKfU4aimdsb2JhbACbGD8BAQEKCQwHEQWwMAqBL4ZdiGgBAwMFhDgEgWWHSg X-IronPort-AV: E=Sophos;i="4.44,679,1249250400"; d="scan'208";a="36146717" Received: from ey-out-2122.google.com ([74.125.78.26]) by mail2-smtp-roc.national.inria.fr with ESMTP; 04 Nov 2009 12:15:38 +0100 Received: by ey-out-2122.google.com with SMTP id d26so823212eyd.7 for ; Wed, 04 Nov 2009 03:15:38 -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:x-enigmail-version:content-type :content-transfer-encoding; bh=t9wOHID74+AGhsxv/20KsNWQ42GsNtUSj+Ntu4ddzP8=; b=AAJyZnShHJpU3gblnT8kj9i+M8IOw9yzBeu0VbHtzh2apEnhpjqkwIrJ0cIToNFC1J u0i+swrQPkcGK2GA2Znh7sCTLSV96F/BRmK2OYhf+KFUhBawH6oh+IqQ5WW7qi4D1Dgv QoI+B7QRvJdQsNfTzTG8ZdzbXiKIUlvzBHg9I= 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 :x-enigmail-version:content-type:content-transfer-encoding; b=lGuRqlMDpQiQN1Qi1vDoqxjPGbMc9gJBwT8k/nn/jlvLhfZSQ5hTAyJKBe7eNgZkIM bTGe5FsPb1dreTMvcNUFfYrRqddxdEM6Rwutv3vH25UFtxzO+apvfji0tOVX74whmqmT WBQJSzPVTmCLSlJr1v4y9y53s19E0XhIx95sI= Received: by 10.216.88.83 with SMTP id z61mr462005wee.140.1257333338673; Wed, 04 Nov 2009 03:15:38 -0800 (PST) Received: from ?172.17.1.11? (papillon.metalscan.fr [212.73.210.234]) by mx.google.com with ESMTPS id j8sm2954344gvb.4.2009.11.04.03.15.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 04 Nov 2009 03:15:38 -0800 (PST) Message-ID: <4AF16258.6010508@gmail.com> Date: Wed, 04 Nov 2009 12:15:36 +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: Howto execute a command without the "cmd" windows opening? 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 ocaml:01 mingw:01 ocaml:01 unix:01 sys:03 separately:05 problem:05 separated:05 i'd:06 linked:07 Hello, I'm trying to run a separated program from an ocaml program (linked with "-subsystem windows" flexlink option). I'm using mingw flavour of Ocaml. The program to run separately is also an ocaml program, linked with "-subsystem windows". The problem is that a "c:\windows\system32\cmd.exe" windows pops up: I'd like to avoid this. I tried Sys.command and Unix.system without success. Is there any way to run a program and get the process status without using cmd.exe ? Thanks Matt