#!/usr/bin/env ruby # This is a cmd-tool, that checks if the given networking-port is available. $:<< File.expand_path('../../lib',__FILE__) require 'net_service.rb' require 'pp' if NetService::checkPort(ARGV[1]) puts "Port #{ARGV[1]}" end