Solved

shell script to send sms

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

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

706 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

14 Experts available now in Live!

Get 1:1 Help Now