While I admire your efforts in getting srvany.exe to work with Perl, I as never able to make it work on NT, don't recall if I tried Win2k.
Win32::Daemon by Dave Roth at www.roth.net has worked much better for me. Jared On Tuesday 09 April 2002 11:20, Karyn Ulriksen wrote: > The following steps were taken to successfully install DBIproxy Server as a > Service under Windows 2000 Professional Server. Directions assume > intermediate level Windows 2000 administrative knowledge. > > Using instsrv.exe and srvany from NT4 Reskit 3 or Download instsrv.exe and > srvany.exe available at http://www.pyeung.com/userdefinedservice.html. > > Installing DBIproxy as a service on a Windows 2000 Professional Server. > ======================================================================== > > COPY "instsrv.exe" and "srvany.exe" into C:\Perl\bin directory. > > OPEN Cmd Command Line service and run: > > C:\Perl\bin\instsrv.exe DBIproxy C:\Perl\bin\srvany.exe > > > EDIT REGISTRY: > > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DBIproxy > > Add a new string value (REG_SZ) to this key with a Name of "Description" > and value of "Perl DBI Proxy Server". > > Add a new subkey to > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DBIproxy > called "Parameters". > > > EDIT REGISTRY: > > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DBIproxy\Parameters > > Add a new string value (REG_SZ) called Application with value of > C:\Perl\bin\dbiproxy.bat. > > Add a new string value (REG_SZ) called AppParameters with value of > "--localport 3333" (you can replace "3333" with whichever port you decide > to use). Any other parameters that you normally would pass on to starting > dbiproxy can go here as well. > > > OPEN SERVICES PANEL (Programs->Administrative Tools->Services): > > Open the Services panel, then open the Properties for DBIproxy. Select the > "Log On" tab and set the service with an appropriate user and password > logon. Select the "Recovery" tab and set recovery actions as appropriate. > Select "Apply" and "OK" when done. Right click on DBIproxy to bring up the > action menu and select "start". If the service was already started, stop > it and restart it again for the changes to take place.
