The following "exec" line swaps stdout and stderr; it should work with bash or ksh: echo hello to stdout exec 3>&1 1>&2 2>&3 echo hello to stderr exec 3>&1 1>&2 2>&3 echo hello to stdout again -- To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.