#!/bin/sh # Script zum Abholen und Abspeichern der Kamerabilder # für den virtuellen Mobotix-Cambetrieb # (c) Michael Nausch - 29.12.2008 WORKDIR_1="/var/www/html/webcam/control/" WORKDIR_2="/var/www/html/webcam/record/" CAMURL_1="http://192.168.100.100/record/current.jpg" CAMURL_2="http://192.168.100.101/record/current.jpg" SLEEP=1 cd $WORKDIR_1 while true do wget $CAMURL_1 rsync $WORKDIR_1"current.jpg" $WORKDIR_2"current.jpg" rsync -av current.jpg cam1.jpg rm current.jpg wget $CAMURL_2 rsync $WORKDIR_1"current.jpg" $WORKDIR_2"current_2.jpg" rsync -av current.jpg cam2.jpg rm current.jpg # sleep $SLEEP done