Hello
I am trying out an example from
http://rubyforge.org/docman/view.php/85/595/service.html
and it errors out
require “win32/service”
include Win32
Create a new service
Service.create(‘some_service’, nil,
:service_type => Service::WIN32_OWN_PROCESS,
:description => ‘A custom service I wrote just for fun’
:start_type => Service::AUTO_START,
:error_control => Service::ERROR_NORMAL,
:binary_path_name => ‘E:\TradingTools\torontotrader
\startServer.bat’,
:load_order_group => nil,
:dependencies => nil
:service_start_name => ‘LocalSystem’,
:password => nil,
:display_name => ‘This is some service’
)
E:/TradingTools/Development/app/helpers/Ruby-1.rb:8: syntax error,
unexpected tSYMBEG, expecting ‘)’
:start_type => Service::AUTO_START,
^