[erlang-questions] Erlang shell - JCL Mode

Matthew Evans mattevans123@REDACTED
Sun Mar 18 13:54:55 CET 2012

I managed to do it by changing user_drv.erl.
You can connect the nodes to create a mesh (e.g. net_adm:ping/1) and then from JCL do: r all
(manager@REDACTED)4> nodes().['bob@REDACTED','sue@REDACTED', 'matt@REDACTED','jane@REDACTED'](manager@REDACTED)5> User switch command --> r all --> j   1  {shell,start,[init]}   2  {'bob@REDACTED',shell,start,[]}   3  {'sue@REDACTED',shell,start,[]}   4  {'matt@REDACTED',shell,start,[]}   5* {'jane@REDACTED',shell,start,[]} --> 
Seems to work....
Attached is a patch file (Erlang R15B) for those that are interested...
From: mattevans123@REDACTED
To: erlang-questions@REDACTED
Date: Sat, 17 Mar 2012 19:27:35 -0400
Subject: [erlang-questions] Erlang shell - JCL Mode

I am working on a system where we could (hopefully) have deployments of many nodes (dimensioned to be in the 100's).
It would be really nice if we could use JCL to switch between shells (using a central management shell) without having to enter JCL and doing r 'node@REDACTED' for each remote node in the system.
Is there any magic that makes this possible?

erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120318/45de8b89/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: user_drv.erl.patch
Type: application/octet-stream
Size: 1069 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120318/45de8b89/attachment.obj>

More information about the erlang-questions mailing list