hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : What's required to send SMS text messages from linux sever ?
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

What's required to send SMS text messages from linux sever ?

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 06-26-2011, 03:33 AM
eva2000 eva2000 is offline
Premium Member
 
Join Date: Apr 2000
Location: Brisbane, Australia
Posts: 1,079
Question

What's required to send SMS text messages from linux sever ?


I'm writing an all in one mysql and data backup script which merges various tools together i.e. mysqldump, rsync, percona xtrabackup and mydumper backup tools. Currently, it sends backup sucess/failure notifications via email from shell.

Then it got me thinking, what about sending notifications via SMS text message ? But I have no idea what is needed on the server end to do this ? Would it be possible to do this even on remote linux servers where I only have ssh2/root access ?

__________________
:: vB benchmarks = Litespeed Cache 721x times faster than Apache
:: MySQL benchmarks (MariaDB 5.2 Intel Opt >MariaDB 5.2 >Percona 5.5 >MySQL 5.5)
:: MySQL backup/restore = mydumper > mysqldump
:: CentminMod.com = Nginx Menu Installer (ngx_pagespeed + SPDY supported)


Reply With Quote


Sponsored Links
  #2  
Old 06-26-2011, 03:56 AM
Mark Muyskens Mark Muyskens is online now
Rebooting is a hack, not a fix
 
Join Date: May 2008
Location: Citrus Heights, CA
Posts: 1,554
I would recommend using a service like Twilio;

http://www.twilio.com

Or for personal use, Google Voice has a decent API for sending texts.

__________________
Best Regards,

Mark

Reply With Quote
  #3  
Old 06-26-2011, 06:50 AM
eva2000 eva2000 is offline
Premium Member
 
Join Date: Apr 2000
Location: Brisbane, Australia
Posts: 1,079
Thanks Mark will look into it, seems to have some nice features too

__________________
:: vB benchmarks = Litespeed Cache 721x times faster than Apache
:: MySQL benchmarks (MariaDB 5.2 Intel Opt >MariaDB 5.2 >Percona 5.5 >MySQL 5.5)
:: MySQL backup/restore = mydumper > mysqldump
:: CentminMod.com = Nginx Menu Installer (ngx_pagespeed + SPDY supported)


Reply With Quote
Sponsored Links
  #4  
Old 06-26-2011, 05:16 PM
StevenG StevenG is offline
Web Hosting Master
 
Join Date: Apr 2002
Location: Auckland - New Zealand
Posts: 1,573
I've used gnokii http://www.gnokii.org/ in the past on linux boxes and a symbian mobile phone plugged into it. Coupled with apache/nagios and a soap server (for remote hosts to send sms), made a great cheap sms gateway

On mates rates plan with vodafone (technically wasn't supposed to do that, automate sms on that plan but there you go )

__________________
Flash Arcade Games

Reply With Quote
  #5  
Old 06-26-2011, 10:42 PM
Senator B Senator B is offline
WHT Addict
 
Join Date: Mar 2010
Posts: 105
Quote:
Originally Posted by eva2000 View Post
I'm writing an all in one mysql and data backup script which merges various tools together i.e. mysqldump, rsync, percona xtrabackup and mydumper backup tools. Currently, it sends backup sucess/failure notifications via email from shell.

Then it got me thinking, what about sending notifications via SMS text message ? But I have no idea what is needed on the server end to do this ? Would it be possible to do this even on remote linux servers where I only have ssh2/root access ?
Since you're already sending email notifications out, the *easiest* way would be to check with your cell provider and see if they have an email-to-SMS gateway. Most of them do, and then it's just a matter of changing where the emails are sent.

Reply With Quote
  #6  
Old 06-26-2011, 11:52 PM
Preetam Preetam is offline
Vroom
 
Join Date: Jul 2007
Location: Ashburn, VA
Posts: 1,249
Quote:
Originally Posted by Senator B View Post
Since you're already sending email notifications out, the *easiest* way would be to check with your cell provider and see if they have an email-to-SMS gateway. Most of them do, and then it's just a matter of changing where the emails are sent.
http://en.wikipedia.org/wiki/List_of_SMS_gateways

__________________
Preetam Jinka

Isomerous - High performance web services for business and individuals.
Bitcable KVMs, cPanel hosting, Oracle expertise, and more.

Reply With Quote
  #7  
Old 06-27-2011, 04:54 AM
Trix Trix is offline
Aspiring Evangelist
 
Join Date: May 2004
Posts: 350
You can also use a service such as this one.

There are other similar (and cheaper) services out there, but the names escape me at the moment.

Reply With Quote
  #8  
Old 06-27-2011, 06:41 AM
eva2000 eva2000 is offline
Premium Member
 
Join Date: Apr 2000
Location: Brisbane, Australia
Posts: 1,079
thanks guys so much useful info, lots of reading to do

__________________
:: vB benchmarks = Litespeed Cache 721x times faster than Apache
:: MySQL benchmarks (MariaDB 5.2 Intel Opt >MariaDB 5.2 >Percona 5.5 >MySQL 5.5)
:: MySQL backup/restore = mydumper > mysqldump
:: CentminMod.com = Nginx Menu Installer (ngx_pagespeed + SPDY supported)


Reply With Quote
  #9  
Old 06-27-2011, 06:44 AM
ValcatoAdam ValcatoAdam is offline
Junior Guru Wannabe
 
Join Date: Nov 2005
Posts: 51
Skype has an API too, if you don't mind paying to send messages.

__________________
Adam McMaster

Valcato HostingOver nine years of great service
Shared, VPS and dedicated servers.

Reply With Quote
  #10  
Old 06-27-2011, 10:14 AM
viGeek viGeek is offline
Russ
 
Join Date: Mar 2002
Location: Philadelphia, PA
Posts: 2,496
I have written a bash script that will send text, pm, ill send you the source.

__________________
Linux junkie | @ Wildbit Philadelphia, PA
Creators of: Beanstalkapp.com & Postmarkapp.com

Reply With Quote
  #11  
Old 06-27-2011, 01:45 PM
HackedServer HackedServer is offline
WHT Addict
 
Join Date: Jan 2010
Location: Okemos, MI
Posts: 102
I've done it before with: http://code.google.com/p/pygooglevoice/

You'll need a Google Voice account, but it worked well.

Just needed a simple command like:

pygooglevoice --batch send_sms 8887776666 Hello World!

Reply With Quote
  #12  
Old 06-27-2011, 03:48 PM
viGeek viGeek is offline
Russ
 
Join Date: Mar 2002
Location: Philadelphia, PA
Posts: 2,496
Just modify the text etc, used this in a monitoring bash script I put together [simpleMon]. Obviously not the best method, but it functioned as intended.




Code:
# Built in SMS function (makes request call to:  http://www.google.com/sendtophone)

# Your Carrier supports:  verizon, tmobile, att, alltel, sprint 
SMS_CARRIER="att"
# Your ten digit phone number (i.e:  5556667777)
SMS_NUMBER=""
# SMS Subject & Message the $HOST variable will return the affected domain/IP.
SMS_SUB="down"
SMS_MSG="not_responding"

  SMS_CARRIER=$(echo $SMS_CARRIER | awk '{print toupper($0)}')
  
post_request="gl=US&hl=en&client=navclient-ffsms&text=simpleMon&from=&c=1&mobile_user_id=$SMS_NUMBER&carrier=$SMS_CARRIER&ec=on&subject=$SMS_SUB&text=$SMS_MSG&send_button=Send"
  post_addr='http://www.google.com/sendtophone'
  ret="$(wget -qO- --post-data "$post_request" "$post_addr")"

__________________
Linux junkie | @ Wildbit Philadelphia, PA
Creators of: Beanstalkapp.com & Postmarkapp.com

Reply With Quote
  #13  
Old 06-27-2011, 03:53 PM
WholesaleBackup WholesaleBackup is offline
Junior Guru Wannabe
 
Join Date: Jun 2011
Posts: 59
Quote:
Originally Posted by Bitcable View Post
+1

I just email to 2065551212@vtext.com and bingo: SMS arrives. . .

;-)

__________________
WholesaleBackup.com
Online Backup Reseller
Your Brand, Our Technology: Total Success.
+1.800-624-9561

Reply With Quote
  #14  
Old 06-28-2011, 12:27 PM
eva2000 eva2000 is offline
Premium Member
 
Join Date: Apr 2000
Location: Brisbane, Australia
Posts: 1,079
sweet more gem info

thanks viGeek for the sample code too

__________________
:: vB benchmarks = Litespeed Cache 721x times faster than Apache
:: MySQL benchmarks (MariaDB 5.2 Intel Opt >MariaDB 5.2 >Percona 5.5 >MySQL 5.5)
:: MySQL backup/restore = mydumper > mysqldump
:: CentminMod.com = Nginx Menu Installer (ngx_pagespeed + SPDY supported)


Reply With Quote
  #15  
Old 06-28-2011, 09:43 PM
Preetam Preetam is offline
Vroom
 
Join Date: Jul 2007
Location: Ashburn, VA
Posts: 1,249
Quote:
Originally Posted by WholesaleBackup View Post
+1

I just email to ----------@vtext.com and bingo: SMS arrives. . .

;-)
I suggest you remove your phone number from a public forum

__________________
Preetam Jinka

Isomerous - High performance web services for business and individuals.
Bitcable KVMs, cPanel hosting, Oracle expertise, and more.

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
From what website do you send your Free SMS text messages? BluewaveHosted Web Hosting Lounge 1 02-27-2008 04:12 PM
Send Text Messages by Email (List) The Dude Web Hosting Lounge 5 05-09-2007 11:28 PM
PHP SMS Script - Web-based Text Messages jdk Other Offers & Requests 19 09-23-2006 02:04 PM
TextFree.net - Send free text messages to mobile/cell phones! wills17 Other Offers & Requests 2 03-17-2006 04:20 PM

Related posts from TheWhir.com
Title Type Date Posted
The Options for Blocking Outbound Spam: The Status Quo Blog 2013-06-06 14:08:10
Big Data and Cloud Drive Enterprise Linux Adoption: Report Web Hosting News 2013-03-27 12:54:34
Are you ready for Speed Networking at WHIR Events? Blog 2013-01-18 07:00:04
Irish Web Host LetsHost Sending Billing Reminders to Customers via Text Message Web Hosting News 2012-03-13 17:00:48
Linux Foundation Website Down After Security Breach Last Week Web Hosting News 2011-09-12 20:32:11


Tags
backup script, data backup, mysql backup, mysqldump, rsync, sms text, xtrabackup

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?