分类: LINUX
2010-04-01 07:06:24
wangyao@wangyao-laptop:~/Desktop/fetion$ cat tianqi.sh #!/bin/sh MobileList="139366xxxx 1393639xxxx" #Get TianQi Msg wget -nv -O tianqi.html TianQi_MSG=$(cat tianqi.html | grep -v "img src" | html2text | sed '/^$/d' | sed '/^\[/d' | sed -n '2,6p') rm -f tianqi.html for mobile in $MobileList do LD_LIBRARY_PATH=libs ./fetion --mobile=139xxxxxxx --pwd=xxxxxxxx --to=$mobile --msg-utf8="$TianQi_MSG" done |