Curious if anyone can help me with this - I have a long running script and I'd like to redirect both stdout and stderr to a log file, as well as have the output visible on the console (that last part I could live without - just run a tail -f after execution). I've tried both of these after googling around: ./prog.sh 2>&1 | tee prog.log ./prog.sh 3>&1 >&2 2>&3 3>&- | tee prog.log Neither works - not sure if they aren't supported in /bin/bash. Any suggestions? Thanks! Josh