Search This Blog

Thursday, July 21, 2011

Sending SMS to Multiple People

 

Sending SMS to Multiple People

I used the following code available at

https://sourceforge.net/projects/servalivecheck/

I have a file say sms.txt with the following entries I want to send an SMS to all the people in this file.

Sms.lst has the following entries

Ravi,9198808XXXXX

Naveen,919663XXXXX

In Unix create an shell script with the following entries

cat dd.sh

#!/bin/bash

for x in `awk -F',' '{ print $2 }' sms.lst`

do

/home/ias/Oracle/Middleware/jdk160_18/bin/java -cp /home/ias/JavaUtils Sms160By2 $x "\" We are playing Cricket on this Saturday "\"

Done

On Windows run the following batch file ,

for /F "tokens=2* delims=," %i in (sms.lst) do java -cp . Sms160By2 %i "We are playing Cricket on this Saturday"

This sends the SMS to all the people in the group.

No comments: