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 q18InnOP007500 for ; Wed, 8 Feb 2012 19:49:49 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjAEAPvCMk/BNFwCgWdsb2JhbABDhRGpeyIBARYmJ4FzAQUjDwEsKgUGGgImAgItKiqHbqhzig6BL4ocASsFASUfAQIBgnACCQICEAYDCQECCgICWQIMCgQ6ggeBFgSNTZo+ X-IronPort-AV: E=Sophos;i="4.73,385,1325458800"; d="scan'208";a="130625664" Received: from euclide.bretagne.ens-cachan.fr ([193.52.92.2]) by mail4-smtp-sop.national.inria.fr with ESMTP; 08 Feb 2012 19:49:43 +0100 Received: from localhost (localhost [127.0.0.1]) by euclide.bretagne.ens-cachan.fr (Postfix) with ESMTP id DFCE82ACD3 for ; Wed, 8 Feb 2012 19:49:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at bretagne.ens-cachan.fr Received: from euclide.bretagne.ens-cachan.fr ([127.0.0.1]) by localhost (euclide.bretagne.ens-cachan.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vl-0yyikhVZU for ; Wed, 8 Feb 2012 19:49:43 +0100 (CET) Received: from reglisse.bretagne.ens-cachan.fr (reglisse.bretagne.ens-cachan.fr [193.52.92.219]) by euclide.bretagne.ens-cachan.fr (Postfix) with ESMTP id 5A1FD2ACD0 for ; Wed, 8 Feb 2012 19:49:43 +0100 (CET) Received: from webmail.bretagne.ens-cachan.fr (localhost.localdomain [127.0.0.1]) by reglisse.bretagne.ens-cachan.fr (Postfix) with ESMTP id 3E4FB3464F for ; Wed, 8 Feb 2012 19:49:45 +0100 (CET) Received: from 81.53.55.219 (SquirrelMail authenticated user ouchet) by webmail.bretagne.ens-cachan.fr with HTTP; Wed, 8 Feb 2012 19:49:45 +0100 (CET) Message-ID: <50246.81.53.55.219.1328726985.squirrel@webmail.bretagne.ens-cachan.fr> Date: Wed, 8 Feb 2012 19:49:45 +0100 (CET) From: "Ouchet Florent" To: caml-list@inria.fr Reply-To: florent.ouchet@bretagne.ens-cachan.fr User-Agent: SquirrelMail/1.4.8-16.el3 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal References: <4F32A86E.2090206@altair.com> In-Reply-To: <4F32A86E.2090206@altair.com> Subject: Re: [Caml-list] sys command Hi Fady, Just launch cmd.exe with the right parameters "/C your_script.bat". Ideally the path to cmd.exe is stored in the environment variable "ComSpec". You can also specify read/write/error pipes like for other usual applications. Cheers, -- Florent Ouchet PRAG Génie Electrique ENS Cachan Antenne de Bretagne - Département mécatronique