Last active
August 29, 2015 14:03
-
-
Save changemewtf/f9a0d8340fc29da58427 to your computer and use it in GitHub Desktop.
source this script to log all of your shell output to a file... it'll make vim mad because output is not to terminal though
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
# Redirect stdout ( > ) into a named pipe ( >() ) running "tee" | |
exec > >(tee logfile.txt) | |
# Without this, only stdout would be captured - i.e. your | |
# log file would not contain any error messages. | |
exec 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment