A
Alfonso Caponi
Hi List,
I wrote a simple script that import a file list of hosts and try to
connect.
Before the end of the file the script exits with this error:
/usr/lib/ruby/1.8/net/protocol.rb:133:in `sysread': end of file reached
(EOFError)
I using this code to import list:
file = File.new(list,"r")
begin
while (line = file.gets)
line.chomp!
iplist.push line
end
rescue EOFError
f.close
end
Can you help me please?
Thank you very much
Al
I wrote a simple script that import a file list of hosts and try to
connect.
Before the end of the file the script exits with this error:
/usr/lib/ruby/1.8/net/protocol.rb:133:in `sysread': end of file reached
(EOFError)
I using this code to import list:
file = File.new(list,"r")
begin
while (line = file.gets)
line.chomp!
iplist.push line
end
rescue EOFError
f.close
end
Can you help me please?
Thank you very much
Al