From f6970242e9f597c54bba32b89831e2ce38116f7a Mon Sep 17 00:00:00 2001
From: Hearen <LHearen@126.com>
Date: Sun, 23 Sep 2018 17:35:40 +0800
Subject: [PATCH] batch processing translated

---
 site/src/site/sphinx/en/batch-support.md | 39 ++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 site/src/site/sphinx/en/batch-support.md

diff --git a/site/src/site/sphinx/en/batch-support.md b/site/src/site/sphinx/en/batch-support.md
new file mode 100644
index 000000000..1095985b1
--- /dev/null
+++ b/site/src/site/sphinx/en/batch-support.md
@@ -0,0 +1,39 @@
+Batch Processing
+================
+
+With the help of `Batch Processing`, you can run several commands in one line and get the results.
+
+### Usage
+
+#### Step-1: Create the script
+
+Creating a `test.as` script suffixed with `as` here for consistency (actually any suffix is acceptable).
+
+```
+➜  arthas git:(develop) cat /var/tmp/test.as
+help
+dashboard -b -n 1
+session
+thread
+sc -d org.apache.commons.lang.StringUtils
+```
+
+Attention:
+* each command takes each independent line;
+* `dashboard` command should include `-b` to turn on batch mode and `-n` to ensure the script ends;
+* commands as `watch/tt/trace/monitor/stack` should include `-n` option to ensure the script ends;
+* [asynchronous](async.md) can also be used as `watch c.t.X test returnObj > &`;
+
+#### Step-2: Run the script
+
+Using `-b` to turn on script mode, and `-f` to run it and you can also *redirect* the output as:
+
+```sh
+./as.sh -b -f /var/tmp/test.as 56328 > test.out
+```
+
+#### Step-3: Check the outputs
+
+```sh
+cat test.out
+```