From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA27945; Thu, 3 May 2001 13:18:04 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA27794 for caml-list@pauillac.inria.fr; Thu, 3 May 2001 13:18:03 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA24142 for ; Thu, 3 May 2001 09:19:57 +0200 (MET DST) Received: from postfix2-1.free.fr (postfix2-1.free.fr [213.228.0.9]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f437JuL05377 for ; Thu, 3 May 2001 09:19:56 +0200 (MET DST) Received: from th2-3-a7-5-7.dial.proxad.net (th2-3-a7-5-7.dial.proxad.net [213.228.5.7]) by postfix2-1.free.fr (Postfix) with ESMTP id 768BAC157; Thu, 3 May 2001 09:19:54 +0200 (CEST) Date: Thu, 3 May 2001 08:21:47 +0200 (CEST) From: Bruno Pagano X-Sender: pagano@leto.dune To: Robert Longeon Cc: caml-list@inria.fr Subject: Re: [Caml-list] =?iso-8859-1?Q?Comment_rediriger_les_entrées/sorties_?= standards ? In-Reply-To: <4.2.0.58.20010502143518.00da89a0@cezanne.auteuil.cnrs-dir.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Bonjour, vous pouvez essayer ceci : --------- open Unix let fd_file = openfile "trace" [O_WRONLY;O_CREAT] (6*64) let _ = dup2 fd_file stdout let _ = print_endline "texte" ; flush Pervasives.stdout --------- sans oublier de faire le link avec unix.cma Pour tous ces problemes, Xavier Leroy a ecrit un poly de cours sur Unix et camllight qui est tres bien fait et qui contient beaucoup d'exemples classiques. Il doit etre accessible depuis sa page Web. -- Bruno Pagano ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr