Timeline for BASH 4: tee to log file, fail over to /dev/null
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 10, 2021 at 21:18 | comment | added | OPPenguin | It dies because I kill it, due to not being sure how to handle a non-logging use case. Thus this question. :) | |
| Sep 10, 2021 at 9:29 | comment | added | ilkkachu |
Why would the script just die if $LOG_FILE can't be written to? I don't think tee should just up and die even itself if it can't write to a file, let alone kill the whole script. Unless you're using set -e, but you didn't mention that.
|
|
| Sep 10, 2021 at 6:50 | answer | added | Chris Davies | timeline score: 2 | |
| S Sep 9, 2021 at 21:55 | review | First questions | |||
| Sep 10, 2021 at 20:13 | |||||
| S Sep 9, 2021 at 21:55 | history | asked | OPPenguin | CC BY-SA 4.0 |