mirror of
https://github.com/onceupon/Bash-Oneliner
synced 2025-02-16 21:18:23 +00:00
edit background
This commit is contained in:
parent
0ac6121c66
commit
3cee5bb2ce
1 changed files with 10 additions and 3 deletions
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…
Add table
Reference in a new issue