#!/bin/bash
#kaneda@bohater.net
#skrypt sprawdzajacy czy pojawilo sie cos nowego na stronie


rm -f test
wget -O test http://sprocket.ict.pwr.wroc.pl/~zkruczkiewicz/index.php?id=java111a

while :; do
  rm -f tu
  wget -O tu http://sprocket.ict.pwr.wroc.pl/~zkruczkiewicz/index.php?id=java111a
  JEST=`diff tu test`
  if [ ! -z "$JEST" ] ; then

    echo "SA z JAVY WYNIKI" | mail borys
    exit
#    export DISPLAY=0:0
#    Xdialog --msgbox "S¡ WYNIKI z JAVY" 10 20
  fi
  sleep 600
  date
done

