#!/bin/sh # # When leaves have fallen # And skies turned to grey # The night keeps on closing in on the day # A nightingale sings his song of farewell # You better hide for her freezing hell # # Ice Queen - Within Temptation rcom(){ D=$(date) X=$(w3m -dump -cols 2000 http://panhaema.com/rcom | wc -l) if [ -e $HOME/laststate ]; then Y=$(cat $HOME/laststate | wc -l) fi if [ "$X" = "$Y" ]; then echo $D "itibariyle yeni yorum yapilmamis" >> $HOME/rcom.log else let T=X-Y; echo $D "itibariyle" $T" yeni yorum yapilmis" >> $HOME/rcom.log if [ -e /tmp/yorumyazarkenzevktenolubr9.png ]; then echo "Imaj konumlandi" >> $HOME/rcom.log else wget -q http://img362.imageshack.us/img362/9548/yorumyazarkenzevktenolubr9.png -P /tmp echo "Imaj kaydedildi" >> $HOME/rcom.log fi w3m -dump -cols 2000 http://panhaema.com/rcom > $HOME/laststate W1=$(cat $HOME/laststate | sed -n $X'p') if [[ "$X" > "2" ]]; then let X=X-1; W2=$(cat laststate | sed -n $X'p') let X=X-1; W3=$(cat laststate | sed -n $X'p') fi COUNTER=0 while [ $COUNTER -lt 5 ]; do let COUNTER=COUNTER+1 sleep 30s notify-send -t 20000 -i /tmp/yorumyazarkenzevktenolubr9.png "Yapraklar ruzgarla savrulup, askla topraga duser iken panhaema'da" "$W1 $W2 $W3" done fi sleep 10m } COUNT=0 while [ $COUNT -lt 5000 ]; do let COUNT=COUNT+1 echo "Dongu numarasi" $COUNT"/5000" >> $HOME/rcom.log rcom done