|
|
@ -20,7 +20,7 @@ OptionParser.parse do |parser|
|
|
|
|
record = ltnp_operator.get_port_record port
|
|
|
|
record = ltnp_operator.get_port_record port
|
|
|
|
|
|
|
|
|
|
|
|
unless record.nil?
|
|
|
|
unless record.nil?
|
|
|
|
puts "Port: %s, Process: %s" % [record.port, record.p_name]
|
|
|
|
puts "Port: %s, Process: %s, Process ID: %s" % [record.port, record.p_name, record.pid]
|
|
|
|
else
|
|
|
|
else
|
|
|
|
puts "No processes found on port %s" % port
|
|
|
|
puts "No processes found on port %s" % port
|
|
|
|
end
|
|
|
|
end
|
|
|
@ -33,7 +33,7 @@ OptionParser.parse do |parser|
|
|
|
|
record = ltnp_operator.get_port_record port
|
|
|
|
record = ltnp_operator.get_port_record port
|
|
|
|
|
|
|
|
|
|
|
|
unless record.nil?
|
|
|
|
unless record.nil?
|
|
|
|
puts "Port: %s, Process: %s" % [record.port, record.p_name]
|
|
|
|
puts "Port: %s, Process: %s, Process ID: %s" % [record.port, record.p_name, record.pid]
|
|
|
|
puts "Would you like to kill %s? (y/n)" % [record.p_name]
|
|
|
|
puts "Would you like to kill %s? (y/n)" % [record.p_name]
|
|
|
|
input = gets
|
|
|
|
input = gets
|
|
|
|
unless input.nil?
|
|
|
|
unless input.nil?
|
|
|
|