check_smpp.sh

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

SH
46
字号
#!/bin/sh## Use `test/drive_smpp' to test SMPP driver.set -e#set -xtimes=10test/drive_smpp -v 0 -m $times 2> check_smpp_drive.log & sleep 1gw/bearerbox -v 0 test/drive_smpp.conf 2> check_smpp_bb.log &  bbpid=$!running=yeswhile [ $running = yes ]do    sleep 1    if grep "All messages sent to ESME." check_smpp_drive.log > /dev/null      then        running=no    fidonesleep 5kill -INT $bbpidif grep 'WARNING:|ERROR:|PANIC:' check_smpp*.log >/dev/nullthen        echo check_smpp.sh failed 1>&2        echo See check_smpp*.log for info 1>&2        exit 1firm -f check_smpp*.log exit 0

⌨️ 快捷键说明

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