Skip to content

Instantly share code, notes, and snippets.

@ready4god2513
Last active August 29, 2015 13:57
Show Gist options
  • Save ready4god2513/9844537 to your computer and use it in GitHub Desktop.
Save ready4god2513/9844537 to your computer and use it in GitHub Desktop.
Watch Yoself
#! /bin/bash
# usage - ./pics.sh dir sleep-len
command -v brew >/dev/null 2>&1 || { exit 1; }
command -v imagesnap >/dev/null 2>&1 || { brew install imagesnap; }
while :; do
imagesnap $1/$(date +%y%m%d%H%M%S).png
sleep $2
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment