Created
October 6, 2010 18:25
-
-
Save idoru/613840 to your computer and use it in GitHub Desktop.
send stdout and stderr to files but also still output stdout and stderr
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
(ruby -e 'STDERR.puts("stderr output") ; STDOUT.puts("stdout output") ' | tee -a stdout_logfile.txt) 3>&1 1>&2 2>&3 | tee -a stderr_logfile.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment