Project

General

Profile

Bug #5811 » test.rb

netshade (Chris Zelenak), 12/27/2011 03:42 AM

 
#!/usr/bin/env ruby
require 'rubygems'
require 'bundler'
Bundler.require(:default)
options = {}
#options[:collector] = 'localhost:8000'
Instrumental::Agent.logger = Logger.new(STDOUT)
`hostname`
I = Instrumental::Agent.new('b6dce7700edae556c08a1a5b25ed2425', options)
puts "Top output got"
host = `hostname`
puts "Host is #{host}"
(1-1/2)