# !/bin/bash
# copyright Philipp Salzgeber - www.salzgeber.at

while [ true ]; do   
    # create a filename with date and time portion
    filename=$(date -u +"%Y%m%d_%H_%M_%S").jpg
    # use wget to download the current image from the webcam
    wget http://xxx.yyy/record/current.jpg -O $filename
    # wait 5 seconds
    sleep 5;
done;

