Guest User

Untitled

a guest
May 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #! /usr/bin/env ruby
  2. $: << File.join(File.dirname(__FILE__), 'lib')
  3.  
  4. require 'm2m/connect'
  5.  
  6. if $0 == __FILE__
  7. if ARGV.length == 3
  8. interface = M2M::Connect.new(ARGV.shift)
  9. interface.send(ARGV.shift, ARGV.shift)
  10. else
  11. $stderr.puts "Usage: #{__FILE__} <gateway> <msisdn> <message>"
  12. exit(1)
  13. end
  14. end
Add Comment
Please, Sign In to add comment