#!/bin/bash [[ ! -f /etc/send-sms.conf ]] && echo setup variables into /etc/send-sms.conf && exit source /etc/send-sms.conf [[ -z $smsuser ]] && echo setup variables into /etc/send-sms.conf && exit 1 [[ -z $1 ]] && echo what message-without-space to send? && exit 1 # no space allowed msg=$1 url="https://api.ippi.com/sms/send-sms?login=$user&smsLogin=$user&smsPassword=$pass&number=$phone&message=$msg" echo sending sms message $msg to $phone curl -si "$url"; echo