Solved

shell script to send sms

Posted on 2016-09-26
2
229 Views
Last Modified: 2016-09-27
Hi - Is there any way to send mobile sms using shell script based on a condition.
 
if [[ $var1 -eq 1 ]]; then
    echo "Run script to send sms to mobile"
fi

when i googled it I got this command
curl http://textbelt.com/text -d number=5551551555 -d "message=hello from OSXDaily.com"

Open in new window

but how secure is textbelt and also does textbelt has any limitations..
is there any other way other than this, if so can you provide an example

Thanks,
0
Comment
Question by:shragi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 37

Accepted Solution

by:
Geert Gruwez earned 500 total points
ID: 41817662
basically you can do anything with scripting
it depends what's setup behind the scenes ...

i have an app, which takes parameters like phone number and text
from the prompt:
sendsms 0123456789 "any piece of text"
connects to a database and inserts a record
and that record gets processed by another app connected to a gsm modem
and feeds the modem the phone number and text
resulting in sending of an sms

a setup like this can also be bought:
https://www.20papercups.net/programming/sending-receiving-sms-on-linux/
http://www.sms4mail.com/smsmail/smscmd.php
http://linuxgazette.net/164/tomar.html

the solutions are never free
0
 

Author Comment

by:shragi
ID: 41818171
I am still confused what we need here, is there a perl package or some package that does this stuff.
If not what are the list of things i need to do this
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question