Skip to content

Instantly share code, notes, and snippets.

@NQNStudios
Last active March 2, 2017 16:50
Show Gist options
  • Save NQNStudios/2c4de35ec2ddf2f5ba8bf4ad3148e4f2 to your computer and use it in GitHub Desktop.
Save NQNStudios/2c4de35ec2ddf2f5ba8bf4ad3148e4f2 to your computer and use it in GitHub Desktop.
#! /bin/bash
# Syntax: interval-screenshots [interval (seconds)]
# Takes screenshots periodically and saves them to the current directory
while [ 1 ];
do
vardate=$(date +%d\-%m\-%Y\_%H.%M.%S)
screencapture -t jpg -x ./$vardate.jpg
sleep $1;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment