add others

Run multiple commands in background
This commit is contained in:
Bonnie I-Man Ng 2019-05-31 18:23:54 +08:00 committed by GitHub
parent d8fed85f58
commit 83cd707f93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.