i was looking for some help on getting a ruby console app installed as a
service on a windows machine. i haven’t seen anything on the web sites
about this, so i though i’d ask! has anyone done this before? is it
possible?
thanks!
Brian LeRoy
···
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
i was looking for some help on getting a ruby console app installed as a
service on a windows machine. i haven’t seen anything on the web sites
about this, so i though i’d ask! has anyone done this before? is it
possible?
Interesting you bring this up, though I have nothing of substance to offer.
I was thinking about this recently. I’ve written a Windows service in Delphi
before, so I’m familiar with the structure, although Delphi provides some
libs around the API calls.
I was thinking it’d probably be faster to find/build a native .exe for the
service portion, and have it execute the Ruby interpreter. At one time,
Microsoft had such a wrapper .exe that would make any program a service, I
haven’t checked that out in a while, so I don’t know if that is an option.
It was distributed in their SDK or something like that – a non-supported
little dealy.
I’ve been wanting something like this so I could run a Ruby cron dameon as a
service – I’m not thrilled with AT and Task Scheduler (the former not
enough scheduling flexibility and the latter must be GUI driven, I think).
Anyway, just trying to propel the thread in case a solution is uncovered.
Chris
At one time,
Microsoft had such a wrapper .exe that would make any program a service, I
haven’t checked that out in a while, so I don’t know if that is an option.
NT 4.0 and 2000 (and XP, I presume) Resource Kits have a program called
srvany, which will allow any program to run as a service. Some of the tools
in these kits are a free download
[http://www.microsoft.com/windows2000/techinfo/reskit/tools/default.asp],
but this doesn’t appear to be one of them, unfortunately, and I’m pretty
sure the Resource Kit is an additional purchase … but it may be something
you’ve already got laying around.
Chris
“Chris Morris” chrismo@clabs.org wrote in
news:01b601c2c892$9114b8f0$22973acc@ntossu2lch:
At one time,
Microsoft had such a wrapper .exe that would make any program a
service, I haven’t checked that out in a while, so I don’t know if
that is an option.
NT 4.0 and 2000 (and XP, I presume) Resource Kits have a program
called srvany, which will allow any program to run as a service. Some
of the tools in these kits are a free download
[http://www.microsoft.com/windows2000/techinfo/reskit/tools/default.asp
], but this doesn’t appear to be one of them, unfortunately, and I’m
pretty sure the Resource Kit is an additional purchase … but it may
be something you’ve already got laying around.
Check out http://www.firedaemon.com/
···
–
Robert Cowham