logo       

Re: invoking functions on a remote machine without erl running: msg#00361

lang.erlang.general

Subject: Re: invoking functions on a remote machine without erl running

Good day,

hp> Now, due to some regulations, I could not leave a
hp> process such as erl on hp@m2 24 hours a day.
hp> So, how do I perform Mod:Fun in this case when
hp> there is no erl running on hp@m2 ??
hp>
hp> One way I can think of is:
hp> on hp@m1, I can use os:cmd("rsh m2 /path/to/erl") and

You can configure hp@m2 as slave node. Please look documentation on
`slave' module.

Another option is `erl_call', which can start node if necessary.
Binary is in:

$ERL_ROOT/lib/erl_interface-*.*.*/bin/erl_call

hp> What if m2 asks for password when I do 'rsh m2 ...' ?

Both, ssh and rsh, have options to allow login without asking a
password.

For rsh it is .rhosts file in user directory on remote host if I don't
forget.

Best Regards,
Vladimir Sekissov



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise