Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/env ruby
- $: << File.join(File.dirname(__FILE__), 'lib')
- require 'm2m/connect'
- if $0 == __FILE__
- if ARGV.length == 3
- interface = M2M::Connect.new(ARGV.shift)
- interface.send(ARGV.shift, ARGV.shift)
- else
- $stderr.puts "Usage: #{__FILE__} <gateway> <msisdn> <message>"
- exit(1)
- end
- end
Add Comment
Please, Sign In to add comment