termux-packages/packages/termux-api/termux-sms-send
Fredrik Fornwall 59f0d218a6 Initial push
2015-06-13 01:03:31 +02:00

11 lines
197 B
Bash
Executable File

#!/bin/sh
set -e -u
if [ $# != 1 -o $1 = "-h" ]; then
echo "usage: termux-sms-send <recipient-number>"
echo "Send a SMS message given on stdin."
exit 1
fi
termux-api SmsSend --es recipient $1