Skip to content

Instantly share code, notes, and snippets.

@kubosho
Created April 15, 2012 10:48
Show Gist options
  • Save kubosho/2391870 to your computer and use it in GitHub Desktop.
Save kubosho/2391870 to your computer and use it in GitHub Desktop.
rec command log.
#!/bin/sh
NOW_TIME=`date +%Y%m%d-%H%M%S`
REC_SAVE_DIR="/path/to/"
REC=${REC_SAVE_DIR}/${NOW_TIME}_commandlog.txt
script ${REC}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment