Method: MRunEnv::SSHAgent.checkHost

Defined in:
ext/lib/CompLearnLib/RunEnv.rb

.checkHost(hostname) ⇒ Object



105
106
107
108
109
110
# File 'ext/lib/CompLearnLib/RunEnv.rb', line 105

def SSHAgent.checkHost(hostname)
  puts "Checking #{hostname}"
  result = `unset DISPLAY ; setsid ssh #{hostname} hostname -s`
  result.gsub!(/\s/,'')
  hostname == result
end