Skip to content

Instantly share code, notes, and snippets.

@pstibrany
Created October 23, 2011 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pstibrany/1306977 to your computer and use it in GitHub Desktop.
Save pstibrany/1306977 to your computer and use it in GitHub Desktop.
Keep screenshot every 30 seconds
while true
do
DATETIME=`date "+%d.%m.%Y_%H:%M:%S"`
TEMP=`mktemp -t screenshot`
TEMP_PNG="${TEMP}.png"
screencapture -x -C "${TEMP_PNG}"
convert "${TEMP_PNG}" -resize 800x600\> "Screenshot_${DATETIME}.png"
rm $TEMP $TEMP_PNG
sleep 30
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment