Skip to main content
6 events
when toggle format what by license comment
Jun 28, 2021 at 12:40 comment added Exper1mental However, for the exec command, it appears I need to familiarize myself more with proper Bash syntax and perhaps devise a more creative solution. exec >> format_output >> >(tee -a -i "${log_file}") #2>&1 isn't working.
Jun 28, 2021 at 11:44 comment added Exper1mental Indeed, that definitely appears to be the cause of the issue. For the echo command there appears to be a simple fix: echo "Script Initializing" | format_output > "${log_file}" with function format_output() { declare i=${1:-$(</dev/stdin)}; printf "%s, %s, %s, %s\n" "$(timestamp)" "$(pwd)" "${a1}" "${i}"; }
Jun 27, 2021 at 22:14 comment added Kamil Maciorowski Relevant: Is the command in a process substitution invoked in a subshell?
Jun 27, 2021 at 22:08 history edited Exper1mental CC BY-SA 4.0
Giving more descriptive title and fixing typo
Jun 27, 2021 at 22:03 review First posts
Jun 27, 2021 at 23:45
Jun 27, 2021 at 21:59 history asked Exper1mental CC BY-SA 4.0