Do you know the difference between the following Bash commands?
bash program 2>&1 >/tmp/log.txt program >/tmp/log.txt 2>&1 If not, you might be interested in my latest blog post Bash Redirects Explained.
bash program 2>&1 >/tmp/log.txt program >/tmp/log.txt 2>&1