(Bash) Redirect stderr to stdout
Add 2>&1
at the end of the command.
E.g. to save both stderr and stdout outputs to a file:
${CMD} > ${file} 2>&1
References:
Written on April 6, 2022
Deep Learning SWE @ TensorRT, NVIDIA
Add 2>&1
at the end of the command.
E.g. to save both stderr and stdout outputs to a file:
${CMD} > ${file} 2>&1
References: