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 QAA01406; Mon, 3 Nov 2003 16:05:39 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 QAA01636 for ; Mon, 3 Nov 2003 16:05:38 +0100 (MET) Received: from megs23.100mwh.com ([205.214.86.13]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hA3F5b114481 for ; Mon, 3 Nov 2003 16:05:37 +0100 (MET) Received: from [205.214.86.158] (helo=uaapc442) by megs23.100mwh.com with asmtp (Exim 4.24) id 1AGgGs-0008JV-Eb for caml-list@inria.fr; Mon, 03 Nov 2003 08:05:35 -0700 To: caml-list@inria.fr Subject: [Caml-list] camlp4 in script From: Artem Prisyznuk Content-Type: text/plain; format=flowed; charset=koi8-r MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Mon, 03 Nov 2003 17:06:00 +0200 Message-ID: User-Agent: Opera7.21/Win32 M2 build 3218 X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - megs23.100mwh.com X-AntiAbuse: Original Domain - inria.fr X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - sit.kiev.ua X-Loop: caml-list@inria.fr X-Spam: no; 0.00; camlp:01 artem:01 usr:01 ocamlrun:01 usr:01 camlp:01 ocamlrun:01 -where:01 artem:01 bin:01 bin:01 ocaml:01 ocaml:01 lib:01 syntax:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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"; ..... When I try execute this script shell print next error: Fatal error: cannot find file /usr/bin/ocaml -I /usr/lib/ocaml/camlp4 How I can execute script witch revised syntax? -- Artem Prysyznuk tema@sit.kiev.ua ------------------- 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