Last active
March 2, 2017 16:50
-
-
Save NQNStudios/2c4de35ec2ddf2f5ba8bf4ad3148e4f2 to your computer and use it in GitHub Desktop.
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/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