mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-26 06:17:01 +00:00
edit background
This commit is contained in:
parent
0ac6121c66
commit
3cee5bb2ce
13
README.md
13
README.md
@ -842,19 +842,26 @@ zless filename
|
|||||||
#####run in background, output error file
|
#####run in background, output error file
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
(command here) 2>log &
|
some_commands &>log &
|
||||||
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
|
||||||
|
```bash
|
||||||
|
some_commands 2>log &
|
||||||
```
|
```
|
||||||
|
|
||||||
or
|
or
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
(command here) 2>&1| tee logfile
|
some_commands 2>&1| tee logfile
|
||||||
```
|
```
|
||||||
|
|
||||||
or
|
or
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
(command here) 2>&1 >>outfile
|
some_commands 2>&1 >>outfile
|
||||||
```
|
```
|
||||||
//0: standard input; 1: standard output; 2: standard error
|
//0: standard input; 1: standard output; 2: standard error
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user