Hi,<br><br>It is possible to send remote a module source and that one to be compiled there ? <br>Or, I have a compiled module but is not loaded on the remote process; is it possible to send it there, or I should express load it on the remote process?<br>
This is my test module:<br><br><b>-module(test).<br>-export([test_fun/0]).<br><br>test_fun() -><br> io:format("Hello ~p~n",["World"]).</b><br><br><br>now, start one erlang process(on 1st machine):<br>
<br><b>erl -name <a href="mailto:node@10.0.0.1">node@10.0.0.1</a> -setcookie test123</b><br><br>... start other erlang process (on 2nd machine):<br><b>erl -name <a href="mailto:node@10.0.0.2">node@10.0.0.2</a> -setcookie test123</b><br>
<br>In 1st node:<br><br><b>1> c(test).<br>{ok, test}<br>2> <br clear="all"></b><br>In 2nd node, do nothing...<br><br>In the 1st node:<br><br><b>2> spawn('<a href="mailto:node@10.0.0.2">node@10.0.0.2</a>', test, test_fun, []).</b><br>
<br><b>Error in process <0.49.0> on node '<a href="mailto:node@10.0.0.2">node@10.0.0.2</a>' with exit value: {undef,[{test,test_fun,[]}]}</b><br><br>(Which is normal, I think)<br><br><br>So, somewhere in this <i>flow, </i>something like <i>remote module loading</i> can be done ?<br>
<br>Thanks.<br><br>-- <br>Regards,<br><br>Alin<br><br>