[erlang-questions] Programmatically starting a remote shell

Jayson Vantuyl <>
Mon Feb 22 21:19:44 CET 2010


I know that you can do it from the command-line with -remsh <nodename>, but that doesn't so much help from an escript.

On Feb 22, 2010, at 11:27 AM, Geoff Cant wrote:

> 
> Hi all, I have something of an odd request - I want to start a remote
> shell programmatically from an escript. The escript will calculate the
> local and remote nodenames, setup distribution correctly and so on, but
> then it needs to start a remote shell and wait until the remote shell
> exits before the escript exits.
> 
> I've had a bit of a look through the otp source but the only reference
> to remote shells I could find was deep in init.erl. Can someone give me
> a recipe or even just pointers on where to look?
> 
> Cheers,
> -- 
> Geoff Cant
> 
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:
> 

-- 
Jayson Vantuyl




More information about the erlang-questions mailing list