[erlang-questions] nl(module) in -eval

Ulf Wiger ulf@REDACTED
Mon Dec 8 23:40:08 CET 2008


Try c:nl(antenna).

The nl/1 function is "auto-imported" in the shell.
In reality, it's defined in the module c.erl.

http://www.erlang.org/doc/man/c.html

BR,
Ulf W

2008/12/8 Sten Kvamme <sten@REDACTED>:
> Hi,
> Trying to use hot code loading from command line, but nl() does not seem
> to work in eval, or what am I doing wrong?
>
> erl -setcookie SFEWRG34AFDSGAFG35235 -name moko2@REDACTED -eval
> "net_adm:ping('neo@REDACTED'),nl(antenna)."
>
> And this is the error printout:
> {"init terminating in
> do_boot",{undef,[{erl_eval,nl,1},{erl_eval,expr,3}]}}
>
> Thanks,
> Sten Kvamme
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list