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 HAA02165; Wed, 16 Jan 2002 07:39:51 +0100 (MET) 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 HAA02204 for caml-list@pauillac.inria.fr; Wed, 16 Jan 2002 07:39:50 +0100 (MET) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id GAA00732 for ; Wed, 16 Jan 2002 06:12:24 +0100 (MET) Received: from ns.bagley.org (ns.bagley.org [216.30.46.2]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g0G5CN511353 for ; Wed, 16 Jan 2002 06:12:23 +0100 (MET) Received: by ns.bagley.org (TRS/80 Mail Daemon, from userid 500) id E8026FBA5E; Tue, 15 Jan 2002 23:12:24 -0600 (CST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15429.3000.625598.380078@ns.bagley.org> Date: Tue, 15 Jan 2002 23:12:24 -0600 To: caml-list@inria.fr Subject: [Caml-list] error messages to stdout? From: Doug Bagley Organization: Podereterno Delaflor SA X-Face: "|NaWfYJ-]P="T#?R.9}QgGuFXUd@3vi[.E2q-;"NV3+k_y@zreL2w^ts0XPXtt9^9{uQ@.cu2GgUgK9@HXC\a}Rtah}0'eT~>or7[~Hd?;!\Bpo#"3w>0a0ft-MvvZ Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I've been learning how to use Ocaml for writing scripts, and I've encountered a small problem. By "scripts", I mean they have the canonical custom toplevel in the interpreter line. They also dynamically load libs. I had updated one lib and not another that depended on it, so I got a message like so, to stdout: File /usr/local/lib/ocaml/contrib/fs_lib.cma is not up-to-date with respect to interface Pcre The problem was that I piped my ocaml script's output to a file that was supposed to just contain data, and then I graphed it, so the error message showed up in a graph, which was kind of funny but not what I expected. I use pipes and filters a lot, so this could really put a wrench in my plans. Anyway, it would be like, cool, if I could get those errors going to stderr instead, or be enlightened as to the error of my ways. Thanks. cheers, doug ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr