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 KAA03533; Tue, 4 Nov 2003 10:16:32 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 KAA03387 for ; Tue, 4 Nov 2003 10:16:29 +0100 (MET) Received: from mwinf0801.wanadoo.fr (smtp8.wanadoo.fr [193.252.22.23]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hA49GT103143 for ; Tue, 4 Nov 2003 10:16:29 +0100 (MET) Received: from debian (ca-bordeaux-11-212.w80-8.abo.wanadoo.fr [80.8.83.212]) by mwinf0801.wanadoo.fr (SMTP Server) with ESMTP id D8FEC18000F2; Tue, 4 Nov 2003 10:16:28 +0100 (CET) Received: from moi by debian with local (Exim 3.36 #1 (Debian)) id 1AGxJ1-0001F9-00; Tue, 04 Nov 2003 10:16:55 +0100 To: Artem Prisyznuk Cc: caml-list@inria.fr Subject: Re: [Caml-list] camlp4 in script References: From: Remi Vanicat Mail-Copy-To: never Date: Tue, 04 Nov 2003 10:16:54 +0100 In-Reply-To: (Artem Prisyznuk's message of "Mon, 03 Nov 2003 17:06:00 +0200") Message-ID: <87ekwoa3y1.dlv@wanadoo.fr> User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 camlp:01 artem:01 usr:01 ocamlrun:01 usr:01 camlp:01 ocamlrun:01 -where:01 bin:01 bin:01 ocaml:01 ocaml:01 labri:01 u-bordeaux:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Artem Prisyznuk writes: > Hello, > > If I want call ocaml script from shell I type next header for > this script: > > #!/usr/bin/ocamlrun /usr/bin/ocaml > > print_string "Hello\n";; > ..... > > > But if I want use camlp4 for source of script, I try next source > > #!/usr/bin/ocamlrun /usr/bin/ocaml -I `camlp4 -where` > > #load "camlp4r.cma"; > print_string "Hello\n"; > ..... You could try : #!/usr/bin/ocamlrun /usr/bin/ocaml #directory "+camlp4";; #load "camlp4r.cma";; print_string "Hello\n"; -- Rémi Vanicat ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners