Show Table of Contents
3.5.7. CLI 批处理模式命令
这个表提供了 JBoss EAP 6 CLI 里可用的批处理命令列表。这些命令只能用于批处理模式。
表 3.2. CLI 批处理模式命令
| 命令名 | 描述 |
|---|---|
| list-batch | 当前批次里的命令和操作的列表。 |
| edit-batch-line line-number edited-command | 通过行号和要编辑的命令来编辑当前批处理里的行。例如: edit-batch-line 2 data-source disable --name=ExampleDS。 |
| move-batch-line fromline toline | 指定您要移动的行号为第一个参数且新的位置为第二个参数来重新对批处理命令里的行进行排序。例如: move-batch-line 3 1。 |
| remove-batch-line linenumber | 删除指定行上的批处理命令。例如: remove-batch-line 3。 |
| holdback-batch [batchname] |
如果您突然想在 CLI 里执行批处理之外的命令,您可以使用这个命令推迟或存储当前的批处理命令。要返回已暂停批模式,只要在 CLI 命令行上再次输入
batch 就可以了。
如果在
holdback-batch 命令时您提供了 batchname,批命令将按照这个名称进行存储要返回命名的批次,请使用 batch batchname。不使用 batchname 调用 batch 命令将启动新的(未命名)的批处理。系统里只能有一个未命名的暂停批命令。
要查看暂停批命令的列表,请使用
batch -l 命令。
|
| discard-batch | 取消当前活动的批处理命令。 |

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.