check_fakewap.sh

来自「The Kannel Open Source WAP and SMS gatew」· Shell 代码 · 共 48 行

SH
48
字号
#!/bin/sh## Use `test/fakewap' to test the bearerbox and the wapbox.set -e#set -xtimes=10port=8040url="http://localhost:$port/hello.wml"loglevel=0test/test_http_server -f test/hello.wml -p $port > check_http.log 2>&1 &httppid=$!sleep 1gw/bearerbox -v $loglevel gw/wapkannel.conf > check_bb.log 2>&1 &bbpid=$!sleep 2gw/wapbox -v $loglevel gw/wapkannel.conf > check_wap.log 2>&1 &wappid=$!sleep 2test/fakewap -m $times $url > check_fake.log 2>&1ret=$?test/test_http -qv 4 http://localhost:$port/quitkill -INT $bbpid waitif [ "$ret" != 0 ]then	echo check_fakewap failed 1>&2	echo See check_bb.log, check_wap.log, check_fake.log, 1>&2	echo check_http.log for info 1>&2	exit 1firm check_bb.log check_wap.log check_fake.log check_http.logexit 0

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?