Win32 service error

Hi all,

Below is my code.

require ‘rubygems’
require ‘win32/service’
include Win32
puts ‘Currently Running Services:’
Service.services do |svc|
if svc.current_state == ‘running’
puts “#{svc.service_name}\t-\t#{svc.display_name}”
end
end

for this i got “No such file to load --win32/service” How to correct
this program.my OS is XP. Ruby 1.8.6 version.

Thanks
Vinod

Simbolla S. wrote:

Hi all,

Below is my code.

require ‘rubygems’
require ‘win32/service’
include Win32
puts ‘Currently Running Services:’
Service.services do |svc|
if svc.current_state == ‘running’
puts “#{svc.service_name}\t-\t#{svc.display_name}”
end
end

for this i got “No such file to load --win32/service” How to correct
this program.my OS is XP. Ruby 1.8.6 version.

Thanks
Vinod

Hi all,

my probelm is reloved , Thanks Rajiv , i reffered one of thread which
was related Win32 service related (Access denied error for win32
service).

thanks
Vinod

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs