Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rdanilov@itmon-1812:~/rd-scripts$ cat ./sendsms.sh
- #!/bin/bash
- # see https://github.com/z-afshar/zabbix-gammu-smsd/blob/master/sendsms.sh
- HOME=/etc
- PATH=/bin:/sbin:/usr/bin:/usr/sbin
- #MOBILE_NUMBER=`echo "$1" | sed s#\s##`
- MOBILE_NUMBER=$1
- MSG_LENGTH=`echo $2 | wc -m`
- # Send it
- echo "$2" | /usr/bin/gammu-smsd-inject TEXT "${MOBILE_NUMBER}" -autolen ${MSG_LENGTH}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement