1. John Rizzo
  2. twilio_test


twilio_test /

Filename Size Date modified Message
127 B
7 B
11 B
95 B
1.1 KB
1.1 KB
29 B
1.1 KB


This is a simple program that tests if a URL is available and txt's you if it isn't


Add this line to your application's Gemfile:

gem 'twilio_test'

And then execute:

$ bundle

Or install it yourself as:

$ gem install twilio_test


Set environment variables such as the following;

Get this from your twilio account

$ export ACCOUNT_SID='...'
$ export AUTH_TOKEN='...'

This is your twilio phone number

$ export TWILIO_SENDER='+...'

This is who you want to send the message to

$ export TWILIO_RECEIVER='+...'

The host to test

$ export IP_OR_FQDN='http://google.com'

If you update the pingtest script you can set a cron like job based on rufus-scheduler

$ export TEST_INTERVAL='1m'


  1. Fork it ( https://github.com/johnrizzo1/twilio_test/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request