All pastes #838687 Raw Edit

Miscellany

public shellscript v1 · immutable
#838687 ·published 2007-12-30 16:02 UTC
rendered paste body
#!/bin/shproxylist=proxylisttmpfile=script.$$function hlasuj_ind () {    export http_proxy=$1    wget -t1 --timeout 20 --proxy=on --header="Cookie: X-MV-Referer=; X-Ref-Ok=1" veslarov.myminicity.com/ind; rm index.html;wget -t1 --timeout 20 --proxy=on  --header="Cookie: X-MV-Referer=; X-Ref-Ok=1" cablenet.myminicity.com/ind; rm index.html}function hlasuj_tra () {    export http_proxy=$1    wget -t1 --proxy=on --timeout 20 --header="Cookie: X-MV-Referer=; X-Ref-Ok=1" veslarov.myminicity.com/tra; rm index.html;wget -t1 --timeout 20 --proxy=on  --header="Cookie: X-MV-Referer=; X-Ref-Ok=1" cablenet.myminicity.com/tra; rm index.html}function hlasuj_sec () {    export http_proxy=$1     wget -t1 --proxy=on --timeout 20 --header="Cookie: X-MV-Referer=; X-Ref-Ok=1" veslarov.myminicity.com/sec; rm index.html;wget -t1 --timeout 20 --proxy=on  --header="Cookie: X-MV-Referer=; X-Ref-Ok=1" cablenet.myminicity.com/sec; rm index.html}function hlasuj_env () {    export http_proxy=$1    wget -t1 --proxy=on --timeout 20 --header="Cookie: X-MV-Referer=; X-Ref-Ok=1" veslarov.myminicity.com/env; rm index.html;wget -t1 --timeout 20 --proxy=on  --header="Cookie: X-MV-Referer=; X-Ref-Ok=1" cablenet.myminicity.com/env; rm index.html}function hlasuj() {    export http_proxy=$1    wget -t1 --proxy=on --timeout 20 --header="Cookie: X-MV-Referer=; X-Ref-Ok=1" veslarov.myminicity.com; rm index.html;wget -t1 --timeout 20 --proxy=on  --header="Cookie: X-MV-Referer=; X-Ref-Ok=1" cablenet.myminicity.com; rm index.html}if [ ! -f "$proxylist" ]; then    echo "Soubor $proxylist neexistuje, koncim."    exit -1fii=0for proxy in `cat "$proxylist"`; do    hlasuj $proxy    i=`expr $i + 1`donei=`expr $i - 1`echo "Celkove odhlasovano na $i strojich! :-O"