12 lines
279 B
Bash
Executable File
12 lines
279 B
Bash
Executable File
#!/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
|