#!/bin/sh # Script zum "Hochladen" der Strormforce-Bilder auf den Webserver der NSS # zur Weiterleitung an den virtuellen Host "Webcam" # (c) Michael Nausch # Version 0.01: 29.12.2008 # 0.02: 07.11.2009 # 0.03: 04.05.2012 # 0.04: 16.02.2013 (Anpassung an neue Server-Farm) WORKDIR="/usr/local/src/stormforce-xr/" QUELLE="/usr/local/src/stormforce-xr/stormforce-xr.png" ZIEL="wetterserver.dmz.nausch.org:/home/weather/" QUELLE2="/usr/local/src/stormforce-xr/stormforce_small.png" ZIEL1="wetterserver.dmz.nausch.org:/home/weather/stormforce_small.png" SLEEP=100 cd $WORKDIR while true do convert -geometry 280x183 $QUELLE $QUELLE2 rsync -av $QUELLE $ZIEL"stormforce_2.png" rsync -av $QUELLE2 $ZIEL"stormforce_small.png" sleep $SLEEP done