|
| From: | Pierre Gaston |
| Subject: | Re: [Help-bash] redirection - stdout |
| Date: | Mon, 28 May 2012 09:50:36 +0300 |
#!/bin/bash  exec 1>$(tty)
if ! [ -t 1 ]; then
  exec 3>&1
fi
doing this
1>&-
will close &3 as well.
| [Prev in Thread] | Current Thread | [Next in Thread] |