Hello all -
I am running into a curious issue with Net-Ping on Windows (XP Pro SP2
with administrator privileges). Attempting
Here’s the code (which executes flawlessly under OS X 10.5 using sudo):
hostlist = “192.168.1.1”
Here’s the error message:
D:\Documents and Settings\220022671.USERSAPPLGE>ruby icmpping.rb
sys_fail(socket(2)) - errno == 0
ruby 1.8.6 (2007-09-24) [i386-mswin32]
This application has requested the Runtime to terminate it in an unusual
Please contact the application’s support team for more information.
D:\Documents and Settings\220022671.USERSAPPLGE>
Here are my currently installed Gems:
D:\Documents and Settings\220022671.USERSAPPLGE>gem list --local
*** LOCAL GEMS ***
Graphical interface to the RI documentation, with search engine.
FXRuby is the Ruby binding to the FOX GUI toolkit.
Hoe is a simple rake/rubygems helper for project Rakefiles
a swift, liberal HTML parser with a fantastic library
Log4r is a comprehensive and flexible logging library for Ruby.
A ping interface for Ruby.
rake (0.8.3, 0.7.3)
Ruby based make-like utility.
A script which automates a limited set of rubyforge operations
This package provides download sources for remote gem installation
Test::Unit 2.x - Improved version of Test::Unit bundled in Ruby
win32-api (1.3.0, 1.0.4)
A superior replacement for Win32API
A package for interacting with the Windows clipboard
Extra constants and methods for the Dir class on Windows.
Interface for the MS Windows Event Log.
Extra or redefined methods for the File class on Windows.
A File::Stat class tailored to MS Windows
Provides an Open3.popen3 implementation for MS Windows
Adds fork, wait, wait2, waitpid, waitpid2 and a special kill method
An interface to the MS SAPI (Sound API) library.
A library for playing with sound on MS Windows.
windows-api (0.3.0, 0.2.0)
An easier way to create methods using Win32API
windows-pr (1.0.1, 0.7.2)
Windows functions and constants bundled via Win32::API
Seeing as how the application works in OS X and not in Windows it leads
me to think there’s an issue with the Ping::ICMP implementation on the
Windows platform specifically. Ping::TCP works perfectly.