4 SCRIPTNAME=termux-sms-send
6 echo "Usage: $SCRIPTNAME -n number[,number2,number3,...] [text]"
7 echo "Send a SMS message to the specified recipient number(s). The text to send is either supplied as arguments or read from stdin if no arguments are given."
8 echo " -n number(s) recipient number(s) - separate multiple numbers by commas"
13 while getopts :hn: option
17 n) RECIPIENTS="--esa recipients $OPTARG";;
18 ?) echo "$SCRIPTNAME: illegal option -$OPTARG"; exit 1;
23 if [ -z "$RECIPIENTS" ]; then
24 echo "$SCRIPTNAME: no recipient number given"; exit 1;
27 CMD="@TERMUX_API@ SmsSend $RECIPIENTS"