原创文章,转载请注明出处:服务器非业余研究http://blog.csdn.net/erlib 作者Sunface
联系邮箱:cto@188.com

Job Control Mode

作业控制模式

The Job Control Mode (JCL mode) is the menu you get when you press ˆG in the Erlang shell. From that menu, there is an option allowing you to connect to a remote shell:

 作业控制模式(Job Control Mode,JCL)是在Erlang shell中按下Ctrl+G时出如今菜单。

里面有一个选项同意你连接到一个远程节点上:--------------------------------------------------------------------------------------
(somenode@ferdmbp.local)1>
User switch command
--> h
c [nn] - connect to job
i [nn] - interrupt job
k [nn] - kill job
j - list all jobs
s [shell] - start local shell
r [node [shell]] - start remote shell
q - quit erlang
? | h - this message
--> r ’server@ferdmbp.local’
--> c
Eshell Vx.x.x (abort with ^G)
(server@ferdmbp.local)1>
--------------------------------------------------------------------------------------

When that happens, the local shell runs all the line editing and job management locally, but the evaluation is actually done remotely. All output coming from said remote evaluation will be forwarded to the local shell.
To quit the shell, go back in the JCL mode with ˆG. This job management is, as I said, done locally, and it is thus safe to quit with ˆG q:

 当完毕了上面代码中的操作后,那些看上去在本地shell完毕的输入,实际上是在远程节点上完毕的。所以本地节点显示的执行结果实际上是在远程节点操作返回的。

 假设要退出本地的shell,须要用Ctrl+G回到JCL模式,然后输入q退出本地节点(这样的操作是很安全的,仅仅会退出本地节点).

---------------------------------------------------------------

(server@ferdmbp.local)1>
User switch command
--> q
--------------------------------------------------------------------------------------

You may choose to start the initial shell in hidden mode (with the argument -hidden) to avoid connecting to an entire cluster automatically.

 你能够使用hidden模式(使用參数:-hidden)启动一个shell。这样的情况下该shell默认是对其它节点隐藏的,这样就能够防止此shell自己主动连接到整个集群上了。

最新文章

  1. YAML-初识
  2. 【java 断点续传】
  3. HTTP 笔记与总结(7)HTTP 缓存(配合 Apache 服务器)
  4. js plugin
  5. CH Round #53 -GCD Path
  6. 棋盘问题 简单搜索DFS
  7. sudo pip install MySQLdb
  8. Zookeeper应用之——队列(Queue)
  9. react脚手架搭建及配置
  10. nehibernet .net注意事项
  11. oozie 入门
  12. Oralce数据库的优化(面试必问题)
  13. hdu 5046 二分+DLX模板
  14. [转]How to nest transactions nicely - "begin transaction" vs "save transaction" and SQL Server
  15. 【HAOI2010】软件安装
  16. Unix系统编程()改变信号处置:signal
  17. Apache Accumulo
  18. Codeforces Round #522 Div. 1 没打记
  19. Innodb间隙锁,细节讲解(转)
  20. iOS Xcode之SVN(remove git)

热门文章

  1. sqlserver 汉字转拼音 首写字母 索引 函数
  2. 第十六篇:django基础
  3. 如何在CentOS7上改变网络接口名
  4. NetAPP常用操作
  5. 浅谈_IDEA导入Eclipse的Web项目
  6. Mysql建立触发器
  7. linux和shell关系
  8. F28379D烧写双核程序(在线&离线)
  9. Linux内核实践之序列文件【转】
  10. Cookies/Session机制详解