Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

shell script to send sms

Posted on 2016-09-26
2
Medium Priority
?
496 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 38

Accepted Solution

by:
Geert Gruwez earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month12 days, 7 hours left to enroll

971 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