check_httpsmsc_kannel.sh

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

SH
49
字号
#!/bin/sh## Use `test/fakesmsc' to test the bearerbox and the smsbox.set -etimes=10interval=0loglevel=0gw/bearerbox -v $loglevel gw/smskannel.conf > check_httpsmsc_kannel_sbb.log 2>&1 &sbbpid=$!gw/bearerbox -v $loglevel gw/other_smskannel.conf > check_httpsmsc_kannel_cbb.log 2>&1 &cbbpid=$!sleep 2test/fakesmsc -i $interval -m $times '123 234 text relay nop' \    > check_httpsmsc_kannel_fake.log 2>&1 &sleep 1gw/smsbox -v $loglevel gw/smskannel.conf > check_httpsmsc_kannel_ssb.log 2>&1 &gw/smsbox -v $loglevel gw/other_smskannel.conf > check_httpsmsc_kannel_csb.log 2>&1 &running=yeswhile [ $running = yes ]do    sleep 1    if grep -v "fakesmsc: terminating" check_httpsmsc_kannel_fake.log >/dev/null    then    	running=no    fidonekill -INT $sbbpidkill -INT $cbbpidwaitif grep 'WARNING:|ERROR:|PANIC:' check_httpsmsc_kannel_*.log >/dev/nullthen	echo check_httpsmsc_kannel.sh failed 1>&2	echo See check_httpsmsc_kannel_*.log for info 1>&2	exit 1firm check_httpsmsc_kannel_*.log

⌨️ 快捷键说明

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