while true; do

  if [ -f ../webroot/tmp/facepalm ]
  then
    rm -f ../webroot/tmp/facepalm > /dev/null
    mplayer -display :0 -fs facepalm.flv > /dev/null &
    sleep 3
    killall mplayer
  fi

  if [ -f ../webroot/tmp/say ]
  then
    cat ../webroot/tmp/say | espeak -v german-mbrola-2 > /dev/null
    rm -f ../webroot/tmp/say > /dev/null
  fi

  sleep 1
done

