eddie25wm
Posts: 16
Joined: Sat Oct 18, 2014 5:30 am

Urgent : sending sms

Sat Nov 08, 2014 4:00 am

I would like to send an sms that is in the variable. But i got no value when receiving the sms

code :

set var="http:\\google.com.sg/maps?"
echo "$var" | sudo gammu sendsms TEXT +65123456

please advise.

Thank you.

eddie25wm
Posts: 16
Joined: Sat Oct 18, 2014 5:30 am

Re: Urgent : sending sms

Sat Nov 08, 2014 4:44 am

Hi,

Please help.

Thank you

eddie25wm
Posts: 16
Joined: Sat Oct 18, 2014 5:30 am

Re: Urgent : sending sms

Sat Nov 08, 2014 7:34 am

Hi,

anyone know how?

Thanks

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26659
Joined: Sat Jul 30, 2011 7:41 pm

Re: Urgent : sending sms

Sat Nov 08, 2014 9:14 am

Your post has been up less than four hours. You might need to try a little patience....

Do the individual command works correctly from the command line?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Urgent : sending sms

Sat Nov 08, 2014 9:15 am

eddie25wm wrote:I would like to send an sms that is in the variable. But i got no value when receiving the sms

Code: Select all

set var="http:\\google.com.sg/maps?"
echo "$var" | sudo gammu sendsms TEXT +65123456
please advise.

Thank you.
http://en.doc.centreon.com/HowToSendSMSWithGammu

Try changing your code to:

Code: Select all

set var="http://google.com.sg/maps?"
echo "$var" | gammu --sendsms TEXT +65123456
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Urgent : sending sms

Sat Nov 08, 2014 9:16 am

jamesh wrote:Your post has been up less than four hours. You might need to try a little patience....
Not just that, but in the middle of the night in the United Kingdom when we're all sleeping.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
rpdom
Posts: 17173
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Urgent : sending sms

Sat Nov 08, 2014 9:25 am

Try

Code: Select all

var="http://google.com.sg/maps?"
echo "$var" | gammu --sendsms TEXT +65123456
The "set" command is used for setting shell Options and Parameters, not Variables.
To set a variable you use the "variable=value" format.

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Urgent : sending sms

Sat Nov 08, 2014 10:42 am

DougieLawson wrote: http://en.doc.centreon.com/HowToSendSMSWithGammu

Try changing your code to:

Code: Select all

set var="http://google.com.sg/maps?"
echo "$var" | gammu --sendsms TEXT +65123456
I wonder if that site is reliable? It differs from what seems to be the 'home' site for the project, which gives the commands as arguments, not options.

The Hello World sample from the latter site is:

Code: Select all

echo "All your base are belong to us" | gammu sendsms TEXT 123456

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Urgent : sending sms

Sat Nov 08, 2014 11:25 am

In that case, pull the source code and see what it expects.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Beginners”