[erlang-questions] Remote module compilation

Alin Popa alin.popa@REDACTED
Tue May 26 12:59:12 CEST 2009


Hi,

It is possible to send remote a module source and that one to be compiled
there ?
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?
This is my test module:

*-module(test).
-export([test_fun/0]).

test_fun() ->
   io:format("Hello ~p~n",["World"]).*


now, start one erlang process(on 1st machine):

*erl -name node@REDACTED -setcookie test123*

... start other erlang process (on 2nd machine):
*erl -name node@REDACTED -setcookie test123*

In 1st node:

*1> c(test).
{ok, test}
2>
*
In 2nd node, do nothing...

In the 1st node:

*2> spawn('node@REDACTED', test, test_fun, []).*

*Error in process <0.49.0> on node 'node@REDACTED' with exit value:
{undef,[{test,test_fun,[]}]}*

(Which is normal, I think)


So, somewhere in this *flow, *something like *remote module loading* can be
done ?

Thanks.

-- 
Regards,

Alin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090526/5fdf9776/attachment.htm>


More information about the erlang-questions mailing list