Skip to content

Instantly share code, notes, and snippets.

@peterkeller
Last active July 14, 2020 06:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterkeller/bfcde93206458a98c076c9d0bbd453ee to your computer and use it in GitHub Desktop.
Save peterkeller/bfcde93206458a98c076c9d0bbd453ee to your computer and use it in GitHub Desktop.
# Standard error is redirected to standard output, so both are redirected to debug.log
perl test.pl > debug.log 2>&1
# Standard output goes to out.log, and standard error to err.log
perl test.pl 1>out.log 2>err.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment