[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Redirecting STDERR
- Subject: [ale] Redirecting STDERR
- From: mic at mathcs.emory.edu (Michelangelo Grigni)
- Date: Fri, 28 Jul 2000 15:26:57 -0400 (EDT)
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.