[erlang-questions] Can't run my command line Erlang program

Jachym Holecek <>
Thu Nov 14 09:39:58 CET 2013


# Andrew Pennebaker 2013-11-13:
> I'm trying to get my command line Erlang program [...]

Not sure it fits your use case, but escript might come in handy:

  $ cat /tmp/foo
  #!/home/jh/R16B01/bin/escript

  main(Args) ->
          io:format("~p~n", [Args]),
          init:stop().

  $ /tmp/foo hi there
  ["hi","there"]

See 'erl -man escript'.

BR,
	-- Jachym



More information about the erlang-questions mailing list