From: Martin DeMello Date: 2008-03-06T06:26:39+09:00 Subject: Re: Managing Windows from Linux via Ruby On Wed, Mar 5, 2008 at 1:53 AM, Marc Heiler wrote: > > I've used this approach quite successfully, albeit for very > > trivial tasks. > > Trivial tasks sound great, it makes understanding them easier :) > > Do you have a few example scripts for that? Just a few things what > is possible like that, snippets and the like. > (If you dont, dont worry, I dont intend to steal anyone's time). Sorry, no :( It was a while ago and I don't have a windows box any more. The basic setup was very simple, though - I wrote a bunch of code to do stuff, based on the excellent ruby-win32 library, then I created an object that exposed all the methods thro drb, ran the script through rubyscript.exe to create an executable, and then ran anysrv.exe and instsrv.exe from the windows resource kit to install it as a service. One problem is that sometimes stopping the service left a stray ruby.exe process lying around, which is why I said I'd do it using win32-service rather than anyserv if I had to do it again. martin