[erlang-questions] On Starting A Remote Shell Programmatically
Tim Watson
watson.timothy@REDACTED
Sat Aug 21 23:41:23 CEST 2010
There is an ssh application distributed with OTP which should meet your needs. It'll allow you to open an SSH connection and send commands over it, so assuming you have installed the emulator on the remote machine, you should be able to spin up another node. If you're planning on writing a MapReduce framework, may I suggest that you look at riak_core (the underpinning framework behind riak), and luke (http://github.com/basho/luke) as these things have been done before. There is also some excellent stuff in scalaris (http://code.google.com/p/scalaris/) for coordinating work (paxos based IIRC) and the disco project (http://discoproject.org/) has implemented a MapReduce framework too, although jobs are written in python rather than Erlang.
On 21 Aug 2010, at 22:37, 黃耀賢 (Yau-Hsien Huang) wrote:
> I found it by myself. To start an Erlang shell on SSH, use
>
> erl -rsh ssh
>
> command.
>
> To start a remote shell, use
>
> ssh Target-host "erl -rsh ssh -sname Node-name-you-want" &
>
> and prey no other problem that causes the remote shell to fail.
>
> Cheers,
> Y.H.H.
More information about the erlang-questions
mailing list