From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q18J2GCC008103 for ; Wed, 8 Feb 2012 20:02:16 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsYBAFnGMk9KfVM2kGdsb2JhbABDrwEIIgEBAQEJCQ0HFAQjgXIBAQEEEgIsARsdAQMMBgULAwouIQEBEQEFARwGEyKjdwqLcYJwhQE/iHMCBQuIEYM0AgECAgkCAgEGBwQGAQgNDgoMAgkDAYQaC4NZBI1ih0uLDIMSPYQD X-IronPort-AV: E=Sophos;i="4.73,385,1325458800"; d="scan'208";a="130626570" Received: from mail-ee0-f54.google.com ([74.125.83.54]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 08 Feb 2012 20:01:44 +0100 Received: by eekb47 with SMTP id b47so351782eek.27 for ; Wed, 08 Feb 2012 11:01:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qVb2mJ1sLbrRLJ0asqHVaitivf35fvgztsS5cJvGJuo=; b=R8HvnupPmVQfVHOM0Qo/BOrEVgSd1nvq6yEbBVxo0mkRCgt80qRxt1ZQ7xzMY1QJXy eHhHd1dDbSAPR/u+wvuM5lHc2Zp2ya/YccdNKF+ZO0KAiz5/919OIuvGROI6lkbnwczP Dq9veiZXBpd8K39BK2TMKGXokVpHJ0me4hs1Y= MIME-Version: 1.0 Received: by 10.213.7.18 with SMTP id b18mr3050590ebb.89.1328727704091; Wed, 08 Feb 2012 11:01:44 -0800 (PST) Received: by 10.213.6.195 with HTTP; Wed, 8 Feb 2012 11:01:43 -0800 (PST) In-Reply-To: References: <4F32A86E.2090206@altair.com> Date: Wed, 8 Feb 2012 20:01:43 +0100 Message-ID: From: Adrien To: Paolo Donadeo Cc: OCaml mailing list Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Caml-list] sys command On 08/02/2012, Paolo Donadeo wrote: > I use Unix.system but: what popup? I guess the "cmd.exe" one since Sys.command and Unix.system use the same underlying function: system(3). As far as I remember, Unix.create_process will not pop any additional(*) window. (*) Of course, there's no magic here: if the process itself opens a console window, you will always get one. Linking with "gcc -mwindows" or "ld --subsystem windows" (not sure about the syntax for ld) would solve it. If you can't link again, you can still modify the binary with a tool or by hand since it's a single bit (maybe two) in the PE header. Hope this helps, Adrien Nader