[Erlang危机](4.1)作业控制模式

原创文章,转载请注明出处:服务器非业余研究http://blog.csdn.net/erlib 作者Sunface

联系邮箱:[email protected]

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时出如今菜单。

里面有一个选项同意你连接到一个远程节点上:

--------------------------------------------------------------------------------------
([email protected])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 ’[email protected]’
--> c
Eshell Vx.x.x (abort with ^G)
([email protected])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退出本地节点(这样的操作是很安全的,仅仅会退出本地节点).

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

([email protected])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自己主动连接到整个集群上了。

时间: 2024-10-12 17:41:53

[Erlang危机](4.1)作业控制模式的相关文章

[Erlang危机](4.2)Remsh

原创文章,转载请注明出处:server非业余研究http://blog.csdn.net/erlib 作者Sunface 联系邮箱:[email protected] Remsh There's a mechanism entirely similar to the one available through the JCL mode, although invoked in a different manner. The entire JCL mode sequence can by bypa

[Erlang危机](5.1.1)内存

原创文章,转载请注明出处:server非业余研究http://blog.csdn.net/erlib 作者Sunface 联系邮箱:[email protected] Memory The memory reported by the Erlang VM in most tools will be a variant of what is reported by erlang:memory() : Erlang VM大多数检測内存的工具都是通过erlang:memory()来实现的. -----

[Erlang危机]Erlang In Danger 序言

原创文章,转载请注明出处:服务器非业余研究http://blog.csdn.net/erlib 作者Sunface?? Introduction On Running Software 运行时软件 There's something rather unique in Erlang in how it approaches failure compared to most other programming languages. There's this common way of thinkin

[Erlang危机](1.3)OTP应用

?? 1.OTP Applications Figuring out OTP applications is usually rather simple. They usually all share a directory structure that looks like: ?搞清楚 OTP applications通常都非常简单,他们通常在同一个目录下, 目标结构如下: doc/;ebin/src/test/LICENSE.txtREADME.mdrebar.config There mi

[Erlang危机](5.1.4)端口port

原创文章,转载请注明出处:服务器非业余研究http://blog.csdn.net/erlib 作者Sunface 联系邮箱:[email protected] Port In a manner similar to processes, Ports should be considered. Ports are a datatype that encompasses all kinds of connections and sockets opened to the outside world

[Erlang危机](2.1)项目结构

?? 原创文章,转载请注明出处:服务器非业余研究http://blog.csdn.net/erlib 作者Sunface Project Structure The structures of OTP applications and of OTP releases are different. An OTP application can be expected to have one top-level supervisor (if any) and possibly a bunch of

[Erlang危机](4.0)连接远程节点

原创文章,转载请注明出处:服务器非业余研究http://blog.csdn.net/erlib 作者Sunface 联系邮箱:[email protected] 连接到远程节点 Interacting with a running server program is traditionally done in one of two ways. One is to do it through an interactive shell kept available by using a screen

[Erlang危机](5.0)执行时指标

原创文章.转载请注明出处:server非业余研究http://blog.csdn.net/erlib 作者Sunface 联系邮箱:[email protected] Chapter 5 Runtime Metrics 执行时指标(Runtime Metrics) One of the best selling points of the Erlang VM for production use is how transparent it can be for all kinds of intr

[Erlang危机](5.1.3)进程

原创文章,转载请注明出处:服务器非业余研究http://blog.csdn.net/erlib 作者Sunface 联系邮箱:[email protected] Processes Trying to get a global view of processes is helpful when trying to assess how much work is being done in the VM in terms of tasks. A general good practice in E