Hi friends,
I am trying to run my script located in /home/test.sh
I am doing
group = sms-service
keyword = bb
exec = "/home/test.sh %P %a %p"
catch-all = true
It is passing that argument to this script but it is sending one extra msg
to MSISDN no from where bb key word received..
if I sent bb 0123456789 to my short code then I receives two sms
1st one is bb+0123456789 0: Accepted for delivery
2nd one is Thanks
My script is
#!/bin/bash
dos2unix /home/dkt
echo $2 > msg
echo $3 > msisdn_no
awk '{print $1}' msg > keyword
awk '{print $2}' msg > landline_no
if grep -w [Bb][Bb] keyword
then
elinks -dump "
http://localhost:12345/cgi-bin/sendsms?username=abcd&password=xyzl&from=BSNL&to=$3&text=Thanks
"
else
elinks -dump "
http://localhost:12345/cgi-bin/sendsms?username=abcd&password=xyz&from=BSNL&to=$3&text=Plzsend
sms in correct format bb <STD Code>+<landline NO> ex bb 07752226353"
fi
can I do triggering of script and passing argument with
get-url = http://localhost/. <http://localhost/>..
what I need to write here to trigger script located at /home/test.sh or I
need to move it another folder...
Thanks and Regards
Amritesh