Re: ocaml scripting...
On Wed, Apr 18, 2001 at 03:15:10PM -0400, Jerome Vouillon wrote:
> On Wed, Apr 18, 2001 at 03:14:16PM +0200, Georges Mariano wrote:
> > PS : ok, may be there is a practical reason (related to security??)
> > but how do you explain such strange invocation to folks who use
> > everyday "#!/usr/bin/perl" or "#!/usr/bin/sh" ...
>
> You can turn ocaml into a binary by appending ocamlrun in front of it:
> cat ocamlrun ocaml > ocaml2
> Then, the invocation below should work.
> #!/usr/bin/ocaml2
> print_string "foo";;
What is the problem with just doing :
#!/usr/bin/ocamlrun /usr/bin/ocaml
Friendly,
Sven Luther
Reply to: