Sutto / whitepicketfence

micro sms gateway for the web built with rubygsm, sinatra and a whole bucket of awesomeness.

This URL has Read+Write access

whitepicketfence / outgoing.rb
100644 9 lines (7 sloc) 0.193 kb
1
2
3
4
5
6
7
8
9
require File.join(File.dirname(__FILE__), "server_tools")
 
$timeout = (ENV["LOOP_DELAY"] || 5).to_i
 
loop do
  puts "Sending pending messages..."
  SMS.send_pending($modem)
  sleep $timeout
end