mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-12-23 16:56:35 +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
|
||||
|
||||
```bash
|
||||
(command here) 2>log &
|
||||
some_commands &>log &
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
|
||||
```bash
|
||||
some_commands 2>log &
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```bash
|
||||
(command here) 2>&1| tee logfile
|
||||
some_commands 2>&1| tee logfile
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```bash
|
||||
(command here) 2>&1 >>outfile
|
||||
some_commands 2>&1 >>outfile
|
||||
```
|
||||
//0: standard input; 1: standard output; 2: standard error
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user