[ale] Redirecting STDERR

Michelangelo Grigni mic at mathcs.emory.edu
Fri Jul 28 15:26:57 EDT 2000


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.





More information about the Ale mailing list