Shell – Get SMS Notifications When Process Ends or Is Killed

emailmonitoringprocessshellsms

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?)

Best Answer

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.

Related Question