#!/bin/sh # script that dispatches sms messages to one or more numbers. The message # is passed to the script via a command line argument text=$1 # read in numbers from phone number file phonefile=MAINPROGROOT/sms/numbers allnumbers=($(cat $phonefile)) # for now, send same text to all phone numbers for number in ${allnumbers[@]} do echo -e $text | gammu sendsms text $number done