11

There are scripts that will send an e-mail when a server process is finished.

However, I do not want to check my email every so often just to see whether a job has finished. Therefore I'd like to get an SMS message.

My question is similar to this one, just exchange SMS with all occurrences of "e-mail": Is there a program that can send me a notification e-mail when a process finishes?

Can you think of any workaround / app / script / whatever that would enable an SMS to be sent when a job is finished (or prematurely ended?)

12

There are 3 ways to accomplish the sending of an SMS message from a server and/or application.

  1. Setup your own gateway

    If you google for "sms gateway" you'll find a large list of applications that you can setup which will provide this capability. You can also take an old cell phone and a PC and set them up using this tutorial titled: Setting up an SMS Gateway to create your own SMS gateway.

  2. Use a ready made service

    There are service providers that offer this capability (typically for a fee). Here are a couple of them:

    fee free

    These providers often provide a library and/or API, such as this one from twilio, so that you can integrate them more easily into your application if needed.

  3. Send an email to your provider's SMS gateway

    Most providers (Verizon, AT&T, etc.) provide the ability to send an SMS message to your phone using the <phonenumber>@provider.com. Wikipedia also has a pretty exhaustive list of SMS gateways.

  • Accepting this even though it does not provide a cut and paste answer since it seems to be a moderately involved process. Thanks, btw. – The Unfun Cat Jul 13 '13 at 16:38
  • 1
    @TheUnfunCat - yes there are a lot of choices so it'd be difficult to give you just a single solution. – slm Jul 13 '13 at 16:40
4

Another option if you have an android phone: use NotifyMyAndroid to send push messages to your phone.

3

Take a look at gcsms if you have a Google account. It's sort of a hack that uses Google's calendar event notification to send free SMS to your phone right from the shell. You can even send SMS to multiple people provided they've set up their settings properly.

By the way, I am the creator of gcsms.

  • 1
    Google is discontinuing the SMS notifications – dbza Jul 8 '15 at 18:55
  • 1
    @dbza but only for free gmail accounts. If you have Google for Work account, it'll continue to work. – Mansour Jul 8 '15 at 22:51
  • cool I didn't know that – dbza Jul 13 '15 at 1:40
0
#!/bin/bash
# this will send an sms message
# usage: script.name "message you want to send"

echo -e "ATZ\r" >/dev/ttyACM0
echo -e "AT+CMGF=1\r" >/dev/ttyACM0
echo -e "AT+CMGS=\"1234567890\"\r" >/dev/ttyACM0 
echo -e "$1\x1A" >/dev/ttyACM0 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.