2009-02-20 16:53:24 +00:00
|
|
|
#! /usr/bin/ruby
|
2014-04-07 20:26:13 +00:00
|
|
|
require 'ESL'
|
2009-02-20 16:53:24 +00:00
|
|
|
|
2014-02-24 10:12:55 +00:00
|
|
|
HOST = '127.0.0.1'.to_s
|
|
|
|
PORT = '8021'.to_s
|
|
|
|
PASSWORD = 'ClueCon'.to_s
|
2009-02-20 16:53:24 +00:00
|
|
|
|
|
|
|
command = ARGV.join(" ")
|
2014-02-24 10:12:55 +00:00
|
|
|
|
|
|
|
con = ESL::ESLconnection.new(HOST,PORT,PASSWORD)
|
|
|
|
e = con.sendRecv('api ' + command)
|
|
|
|
|
|
|
|
puts e.getBody
|
|
|
|
|