[erlang-questions] Erlang shell - JCL Mode

Matthew Evans <>
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
e.g.
()4> nodes().['','', '','']()5> User switch command --> r all --> j   1  {shell,start,[init]}   2  {'',shell,start,[]}   3  {'',shell,start,[]}   4  {'',shell,start,[]}   5* {'',shell,start,[]} --> 
Seems to work....
Attached is a patch file (Erlang R15B) for those that are interested...
Matt
From: 
To: 
Date: Sat, 17 Mar 2012 19:27:35 -0400
Subject: [erlang-questions] Erlang shell - JCL Mode







Hi
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 '' for each remote node in the system.
Is there any magic that makes this possible?
Thanks
Matt 		 	   		  

_______________________________________________
erlang-questions mailing list

http://erlang.org/mailman/listinfo/erlang-questions 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120318/45de8b89/attachment.html>
-------------- 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