Skip to content

Instantly share code, notes, and snippets.

@meyju
Created October 5, 2016 07:04
Show Gist options
  • Save meyju/6f9871116589ec0876bbcd9c67687bb4 to your computer and use it in GitHub Desktop.
Save meyju/6f9871116589ec0876bbcd9c67687bb4 to your computer and use it in GitHub Desktop.
bash session auto record with script
# 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