Calling a function from command line
Ernie Makris
ernie.makris@REDACTED
Sun Mar 5 19:25:44 CET 2006
Hi Pupeno,
Please take a look erl_call utility that I love. It may not be the best
fit for command line, but try it out.
http://www.erlang.org/doc/doc-5.4.12/lib/erl_interface-3.5.4/doc/html/erl_call.html
Thanks
Ernie
Pupeno wrote:
> Hello,
> I am making a kind of script that generates documentation using edoc.
> I need to call edoc:files(["my", "list", "of", "files"], [{so, "me"}, {opt,
> "ions"}]) but that can't be called from the shell itself, so, is there a
> better way to do it than:
>
> echo "edoc:files([\"my\", \"list\", \"of\", \"files\"], [{so, \"me\"}, {opt,
> \"ions\"}])" | erl
>
> ?
>
> Thanks.
>
More information about the erlang-questions
mailing list