[erlang-questions] beginner: slave:start/3 and -pa in Args not working?

Bengt Kleberg <>
Fri Oct 5 14:45:58 CEST 2012


Greetings,

Does not a slave node get the -pa argument into the code path?

After slave:start/3 with Args set to "-pa ./ebin" I have a remote node.
Good. It has the following expected arguments:
rpc:call('',
init, get_arguments, []).
[{root,["/app/erlang/otp_R15B01/LMWP2/lib/erlang"]},
 {progname,["erl"]},
 {home,["/home/eleberg"]},
 {noshell,[]},
 {noinput,[]},
 {noshell,[]},
 {noinput,[]},
 {master,[""]},
 {name,[""]},
 {rsh,["ssh"]},
 {pa,["./ebin"]}]

But the code path is not as expected:
S = rpc:call('',
code, get_path, []).
lists:member("./ebin", S).
false


Could anybody come forth with suggestions for what to look at?


ebngt




More information about the erlang-questions mailing list