Skip to content

Instantly share code, notes, and snippets.

@iamwilhelm
Created January 23, 2011 18:56
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 iamwilhelm/792320 to your computer and use it in GitHub Desktop.
Save iamwilhelm/792320 to your computer and use it in GitHub Desktop.
The poor man's screen lapse
#!/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