exec 3>&1 1>"/tmp/log.log" 2>&1 set -x echo "creating a temporary directory and some files" >&3