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
Solved

shell script to send sms

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

856 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