📄 check_fakesmsc.sh
字号:
#!/bin/sh## Use `test/fakesmsc' to test the bearerbox and the smsbox.set -e#set -xtimes=10interval=0loglevel=0gw/bearerbox -v $loglevel gw/smskannel.conf > check_fakesmsc_bb.log 2>&1 &bbpid=$!sleep 2test/fakesmsc -i $interval -m $times '123 234 text nop' \ > check_fakesmsc.log 2>&1 &sleep 1gw/smsbox -v $loglevel gw/smskannel.conf > check_fakesmsc_sms.log 2>&1 &running=yeswhile [ $running = yes ]do sleep 2 if grep "Got message $times" check_fakesmsc.log >/dev/null then running=no fidonekill -INT $bbpidwaitif grep 'WARNING:|ERROR:|PANIC:' check_fakesmsc*.log >/dev/nullthen echo check_fakesmsc.sh failed 1>&2 echo See check_fakesmsc*.log for info 1>&2 exit 1firm check_fakesmsc*.logexit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -