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."
9 echo " -n number(s) recipient number(s) - separate multiple numbers by commas"
15 while getopts :hn
: option
19 n
) RECIPIENTS
="--esa recipients $OPTARG";;
20 ?
) echo "$SCRIPTNAME: illegal option -$OPTARG"; exit 1;
25 if [ -z
"$RECIPIENTS" ]; then
26 echo "$SCRIPTNAME: no recipient number given"; exit 1;
29 CMD
="@TERMUX_API@ SmsSend $RECIPIENTS"