From 83cd707f93e3371dcb1e48a976bbafe5a92684ef Mon Sep 17 00:00:00 2001 From: Bonnie I-Man Ng Date: Fri, 31 May 2019 18:23:54 +0800 Subject: [PATCH] add `others` Run multiple commands in background --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 387622e..2621b24 100644 --- a/README.md +++ b/README.md @@ -2230,7 +2230,7 @@ zmore filename zless filename ``` -##### Run in background, output error file +##### Run command in background, output error file ```bash some_commands &>log & @@ -2248,6 +2248,15 @@ some_commands 2>&1 >>outfile #0: standard input; 1: standard output; 2: standard error ``` +##### Run multiple commands in background +```bash +# run sequentially +(sleep 2; sleep 3) & + +# run parallelly +sleep 2 & sleep 3 & +``` + ##### Run process even when logout (immune to hangups, with output to a non-tty) ```bash # e.g. Run myscript.sh even when log out.