(no commit message)
[hombase.git] / other-sh / office_proxy.sh
blob5b3a52e20a98e0e21ffd8b22131a9d595e2e3c24
1 #!bash
2 PATH=/bin:/usr/bin:/home/lifan/other-sh
3 cd /e/vgoah_fox
4 replace 'user_pref(\"network\.proxy\.http\",\"10.8.6.218' 'user_pref(\"network\.proxy\.http\",\"10.8.2.7' user.js
5 replace 'user_pref(\"network\.proxy\.http_port\",3128' 'user_pref(\"network\.proxy\.http_port\",8080' user.js
7 cd /c/Documents\ and\ Settings/lifan/Application\ Data/Mozilla/Firefox/profiles/mixdtwts.test
8 echo -e '/user_pref(\"network.proxy.http\"/c\nuser_pref("network.proxy.http", "10.8.2.7");\n.\nw\np\nq\n' | ed prefs.js
9 echo -e '/user_pref(\"network.proxy.http_port/c\nuser_pref("network.proxy.http_port", 8080);\n.\nw\np\nq\n' | ed prefs.js
12 cd /e/vgoah_f20
13 echo -e '/user_pref(\"network.proxy.http\"/c\nuser_pref("network.proxy.http", "10.8.2.7");\n.\nw\np\nq\n' | ed user.js
14 echo -e '/user_pref(\"network.proxy.http_port/c\nuser_pref("network.proxy.http_port", 8080);\n.\nw\np\nq\n' | ed user.js
17 KILL -f `ps -asW | egrep IEXPLOR | awk '{print $1}'`
18 KILL -f `ps -asW | egrep gnotify | awk '{print $1}'`
19 KILL -f `ps -asW | egrep flashget | awk '{print $1}'`
20 KILL -f `ps -asW | egrep firefox | awk '{print $1}'`
21 KILL -f `ps -asW | egrep googletalk | awk '{print $1}'`
22 KILL -f `ps -asW | egrep babylon | awk '{print $1}'`
24 regtool set -s /user/software/microsoft/windows/currentversion/internet\ settings/ProxyServer 10.8.2.7:8080
26 regtool set -i /user/Software/JetCar/JetCar/Proxy/DefaultForHttp 1
27 regtool set -i /user/Software/JetCar/JetCar/Proxy/DefaultForFtp 1
29 #regtool set -s /user/software/Google/Google\ Talk/Options/proxy_host 10.8.2.7
30 #regtool set -i /user/software/Google/Google\ Talk/Options/proxy_port 8080
32 run /d/prog/autohotkey/gmail.exe
33 run /e/f/firefox.exe -turbo
34 #run /c/Program\ Files/Google/Google\ Talk/googletalk.exe /autostart
35 run /d/prog/babylon/Babylon.exe -AutoStart
36 #run /d/prog/fox/firefox.exe -turbo
38 cd /c/DOCUME~1/lifan/APPLIC~1/GETMAI~1
39 replace 10.8.6.218 10.8.2.7 Proxy_Settings.ini
40 replace 1080 8080 Proxy_Settings.ini