Created
January 23, 2011 18:56
-
-
Save iamwilhelm/792320 to your computer and use it in GitHub Desktop.
The poor man's screen lapse
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
#!/bin/sh | |
SCREENSHOT_PATH="/tmp/screenlapse/" | |
mkdir -p $SCREENSHOT_PATH | |
while true; | |
do | |
TIME=`date +-%Y-%m%d-%H%M%S` | |
screencapture -m $SCREENSHOT_PATH"sl"$TIME".png" | |
convert -resize 40% $SCREENSHOT_PATH"sl"$TIME".png" $SCREENSHOT_PATH"sl"$TIME".png" | |
echo `du -h $SCREENSHOT_PATH` | |
sleep 5 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment