Solved

shell script to send sms

Posted on 2016-09-26
2
86 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
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

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 …
Background Still having to process all these year-end "csv" files received from all these sources (including Government entities), sometimes we have the need to examine the contents due to data error, etc... As a "Unix" shop, our only readily …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

930 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now