A single line script to take screenshot on mac every 10 seconds with timestamp.
Download the Script:
wget https://raw.githubusercontent.com/chetankapoor/spy/master/spy.sh -O spy
Then run the script with following format:
sh spy 10 /Users/user/Pictures