12 lines
279 B
Plaintext
12 lines
279 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
ROUTERIP=`echo ${1} | awk '{ print $1 }'`
|
||
|
USER=`echo ${1} | awk '{ print $2 }'`
|
||
|
PASS=`echo ${1} | awk '{ print $3 }'`
|
||
|
NUMBER=`echo ${1} | awk '{ print $4 }'`
|
||
|
body=${2}
|
||
|
|
||
|
cat <<EOF | /usr/bin/huawei_sms -i ${ROUTERIP} -u ${USER} -p ${PASS} -n ${NUMBER} -
|
||
|
${body}
|
||
|
EOF
|