Created
October 5, 2016 07:04
-
-
Save meyju/6f9871116589ec0876bbcd9c67687bb4 to your computer and use it in GitHub Desktop.
bash session auto record with script
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
# Script Record | |
TIMESTAMP=$(date "+%Y%m%d-%H%M%S") | |
script -q -f -t /home/test/.script/script-${TIMESTAMP}.log 2> /home/test/.script/script-${TIMESTAMP}.time.log && exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment