[erlang-questions] escript

Tuncer Ayaz <>
Wed Apr 30 09:43:10 CEST 2008


On Wed, Apr 30, 2008 at 9:42 AM, Tuncer Ayaz <> wrote:
> 2008/4/30 ayman abolfadl <>:
>
> > Hi,
>  >
>  > I am running a very simple escript but receiving an error as follows
>  >
>  > escript: Internal error: {badmatch,{error,enoent}}
>  >
>  > The escript just performs an io:format and the content of the escript is as
>  > follows.
>  >
>  > #! /usr/local/bin/escript escript
>  > main(_) ->
>  >     io:format("Hello world\n" ).
>
>  What about the following:
>  #! /usr/local/bin/escript
>
>
> main(_) ->
>     io:format("Hello world\n" ).
>

Forgot to add: That one should work :)



More information about the erlang-questions mailing list