#!/bin/tcsh
while 1
wget -q -O - http://uefa-8track.real.com/octo.html | grep -i img\ src | tail -9|head -1 |grep -q 'green.gif'
if ( $status ) then # Not green, dead stream
echo '<set variable=uefalive8status value=kaputt>' > /home/rawww/html/uefa/UEFALIVE8STATUS
else
#echo LIVE HURL OF HAPPINESS
echo '<set variable=uefalive8status value=alive>' > /home/rawww/html/uefa/UEFALIVE8STATUS
endif
#
#
#
goto NO7
wget -q -O - http://uefa-8track.real.com/octo.html | grep -i img\ src | tail -10| head -1 |grep -q 'green.gif'
if ( $status ) then # Not green, dead stream
echo '<set variable=uefalive7status value=kaputt>' > /home/rawww/html/uefa/UEFALIVE7STATUS
else
#echo LIVE HURL OF HAPPINESS
echo '<set variable=uefalive7status value=alive>' > /home/rawww/html/uefa/UEFALIVE7STATUS
endif
#
#
#
NO7:
wget -q -O - http://uefa-8track.real.com/octo.html | grep -i img\ src | tail -1| head -1 |grep -q 'green.gif'
if ( $status ) then # Not green, dead stream
echo '<set variable=uefalive16status value=kaputt>' > /home/rawww/html/uefa/UEFALIVE16STATUS
else
#echo LIVE HURL OF HAPPINESS
echo '<set variable=uefalive16status value=alive>' > /home/rawww/html/uefa/UEFALIVE16STATUS
endif
#
sleep 10
end
