Skip to content

Instantly share code, notes, and snippets.

@glyn
Created April 1, 2015 09:03
Show Gist options
  • Save glyn/484cde963eeea70f6174 to your computer and use it in GitHub Desktop.
Save glyn/484cde963eeea70f6174 to your computer and use it in GitHub Desktop.
Redirecting a script's output to a file
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