[erlang-questions] escript

Tuncer Ayaz <>
Wed Apr 30 09:42:16 CEST 2008


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" ).



More information about the erlang-questions mailing list