[Win32utils-devel] Arguments to Service.start()
phasis at gmail.com
Fri Aug 9 00:55:42 UTC 2013
2013/8/9 Sean Karlage <sean.karlage at uky.edu>:
> I'm working on a script utilizing win32-service. Do arguments to
> Service.start() have to be strings? Or can they be more complex data types
> (e.g. hashes)? I tried passing in hashes but they were not getting passed to
It is string by the spec of Windows Service.
You can convert any object into string using Marshal.dump and revert
> Additionally, when I am passing strings, I notice that not all arguments
> that I pass actually make it to service_main. For example:
> Service.start('ServiceName', nil, 'string1', 'string2')
> When I look at the arguments in service_main, they are:
> ['ServiceName', 'string1']
> 'string2' never actually makes it to service_main. What might be the cause
> of this?
Why you ignore my previous email about this issue?
I already stated it is a bug.
More information about the win32utils-devel