Created
May 11, 2013 21:40
-
-
Save dahoo/5561515 to your computer and use it in GitHub Desktop.
Take a screenshot every x seconds
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
no=$1 # number of screenshots as argument | |
sec=1 # interval of screenshots in seconds, also floats possible | |
sleep 5 # optional | |
s = 0 | |
for i in $(seq $no); do | |
sleep $sec | |
s = $(($i*$sec)) | |
echo "$s seconds of $(($no*$sec))" | |
import -window root image_$(seq -f %0011f $i $i | cut -d ',' -f 1).png | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment