#!/bin/tcsh
set ctr = 0
#going to loop 10 times
while ( $ctr < 10 )
set file = mtnmet_`date -u +%Y%m%d%H%M%S`.jpg
echo snapping mtnmet image no $ctr
curl "http://155.97.226.135/axis-cgi/jpg/image.cgi" -o $file
# sleep for 10 seconds
sleep 10
@ ctr++
end
# copy the last image to the file name last_image.jpg
cp $file last_image.jpg
