Before using this Beecon make sure you have "wget" package installed: Start X-Terminal and type: Code: Nokia-N900-51-1:/home/user/MyDocs# wget wget: missing URL Usage: wget [OPTION]... [URL]... Try `wget --help' for more options. Nokia-N900-51-1:/home/user/MyDocs# If you don't the above output you need to install the package: Code: apt-get install wget
Nokia-N900-51-1:/home/user/MyDocs# wget wget: missing URL Usage: wget [OPTION]... [URL]... Try `wget --help' for more options. Nokia-N900-51-1:/home/user/MyDocs#
apt-get install wget
user_pref("network.proxy.http", "my.proxy.pri"); user_pref("network.proxy.http_port", 3128); user_pref("network.proxy.no_proxies_on", ""); user_pref("network.proxy.ssl", "my.proxy.pri"); user_pref("network.proxy.ssl_port", 3128); user_pref("network.proxy.type", 1);
export http_proxy=http://my.proxy.pri:3128/ export https_proxy=http://my.proxy.pri:3128/
`awk 'BEGIN {FS="[\(\", ;\)]+"}/proxy\.http"/{hx=$3}/proxy\.http_port"/{hp=$3}/proxy\.type"/{pt=$3}/proxy\.ssl"/{sx=$3}/proxy\.ssl_port"/{sp=$3}END{if(pt==0)exit;print "export http_proxy=http://" hx ":" hp "\/ export https_proxy=http://" sx ":" sp "\/"}' /home/user/.mozilla/microb/prefs.js`
`awk 'BEGIN {FS="[\(\", ;\)]+"}/proxy\.http"/{hx=$3}/proxy\.http_port"/{hp=$3}/proxy\.type"/{pt=$3}/proxy\.ssl"/{sx=$3}/proxy\.ssl_port"/{sp=$3}END{if(pt==0)exit;print "export http_proxy=http://" hx ":" hp "\/ export https_proxy=http://" sx ":" sp "\/"}' /home/user/.mozilla/microb/prefs.js`;wget -t 1 -T 3 -O - http://m.mlb.com/scores/`date +%Y%m%d`/ | awk 'BEGIN{t="NYY";m=0}/<td>.+<\/td>/{split(gensub(/<[^>]*>/,"","g"),a);if(a[1]!=t && a[3]!=t && a[4]!=t)next;m=1;if(a[2]=="vs."){print a[1] "\n" a[3] "\n" a[4],a[5];exit 1}print a[1],a[2] "\n" a[4],a[5] "\n" a[6];if((a[4]==t&&a[5]>a[2])||(a[1]==t&&a[2]>a[5]))exit 0;if(a[5]==a[2])exit 1;else exit 2}END{if(m==0){print "No\nMatch!\n";exit 1}}'
# cat /usr/sbin/pxy.sh awk ' BEGIN { FS="[\(\", ;\)]+" } /proxy\.http"/ { hx=$3 } /proxy\.http_port"/ { hp=$3 } /proxy\.type"/ { pt=$3 } /proxy\.ssl"/ { sx=$3 } /proxy\.ssl_port"/ { sp=$3 } END { if ( pt==0 ) exit; print "export http_proxy=http://" hx ":" hp "\/ export https_proxy=http://" sx ":" sp "\/" } ' /home/user/.mozilla/microb/prefs.js #
chmod 755 /usr/sbin/pxy.sh
`pxy.sh` ; wget -t 1 -T 3 -O - http://m.mlb.com/scores/`date +%Y%m%d`/ | awk 'BEGIN{t="NYY";m=0}/<td>.+<\/td>/{split(gensub(/<[^>]*>/,"","g"),a);if(a[1]!=t && a[3]!=t && a[4]!=t)next;m=1;if(a[2]=="vs."){print a[1] "\n" a[3] "\n" a[4],a[5];exit 1}print a[1],a[2] "\n" a[4],a[5] "\n" a[6];if((a[4]==t&&a[5]>a[2])||(a[1]==t&&a[2]>a[5]))exit 0;if(a[5]==a[2])exit 1;else exit 2}END{if(m==0){print "No\nMatch!\n";exit 1}}'