in my bash script I use the following approach in order to write every thing from standard output and standard error to log.txt
export LOG=/tmp/installation/log.txt exec > $LOG 2>&1
so everything is writing to
but how to do the writing to two different logs path
lets say I want to write the same standard output and standard error both to 2 log files
then how is the syntax in this case ?
export LOG=/tmp/installation/log.txt export LOG_I=/tmp/installation/log_info.txt
so both logs will get the same content
can we do like this?
export LOG=/tmp/installation/log.txt export LOG_I=/tmp/installation/log_info.txt exec > $LOG $LOG_I 2>&1