Search Results

Search: Posts Made By: vibhor_agarwali
6,450
Posted By Scott
Another option: $ ls abc 2>&1 | tee log ...
Another option:


$ ls abc 2>&1 | tee log
ls: abc: No such file or directory
$ echo $?
0

$ set -o pipefail
$ ls abc 2>&1 | tee log
ls: abc: No such file or directory
$ echo $?
1
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 12:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy