Code Monkey home page Code Monkey logo

twilio_send_sms's Introduction

twilio_send_sms gem

Provides the command twilio_send_sms which sends a message.

I find this useful if I have a long-running server operation and I want to be notified when it finishes.

For example (assuming config file is already in place)

date && mysqldump -u trinity -p irs_dbase | gcat -c ~/data/my_dumpfile.sql.gz && date && twilio_send_sms -m "database file is ready"

Requires an account with a number that can send SMS from Twilio.

Installation

gem install twilio_send_sms

Usage

without config file (everything from command line):

twilio_send_sms \
  -u <your Twilio account_sid> \
  -p <Twilio auth token> \
  -f <from number - one you have set up in Twilio>
  -t <to number - will receive the text>
  -m <message content>

with config file:

In ~/.twilio_send_sms.yml:

account_sid: 05e40596bb3d66f752ac957a86596a22cf # this is fake
auth_token: d94c98587f7674c2c76d091dc47bdd76    # also fake

message_from: "(123) 456-7890"     # An sms-enabled Twilio phone number
message_to: "345-678-1234"         # Who will receive the message.  Maybe you, as the server admin. Alternatively, specify recipient each time via -t flag
twilio_send_sms -m "Hello from your server"

twilio_send_sms's People

Contributors

sporky023 avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.