liveder
Joined: 10 Dec 2007 Posts: 10
|
Posted: Mon Dec 10, 2007 6:17 am Post subject: |
|
|
When executing script by myself:
[root@cacti /usr/local/www/data/scripts]# ./nut_ups_status.rb rizhskiy@192.168.241.6
./nut_ups_status.rb:28:in `readline': end of file reached (EOFError)
from ./nut_ups_status.rb:28
in nut_ups_status.rb the 28 line is(the bold one):
| Quote: |
else
$s.write("USERNAME cacti\r\n"); $s.readline
|
[root@cacti /usr/local/www/data/scripts]# uname -a
FreeBSD 7.0-BETA2
[root@cacti /usr/local/www/data/scripts]# pkg_info|grep rub
ruby-1.8.6.111,1 An object-oriented interpreted scripting language
what is the problem?.. |
|