Created
October 23, 2011 07:10
-
-
Save pstibrany/1306977 to your computer and use it in GitHub Desktop.
Keep screenshot every 30 seconds
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
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