Created
April 1, 2015 09:03
-
-
Save glyn/484cde963eeea70f6174 to your computer and use it in GitHub Desktop.
Redirecting a script's output to a file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exec 1<&- | |
exec 1<>/tmp/somescript.log | |
exec 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment