If I understood cleary you told about servcer under win32. You can use win nt/2000 utilities instsrv.exe and srvany.exe. Thouse utilities will help you to run your server as service (like 'demon' in Linux):
> instsrv.exe NAME_YOUR_SERVICE srvany.exe
Next you should edit system register: find HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NAME_YOUR_SERVICE,
add key Parameters and two subkeys:
Application - type: REG_SZ, value: path to Perl interpretator (C:\Perl\bin\perl.exe)
AppParameters - type: REG_SZ, value: path to your Perl script which you want to run and all its arguments (C:\MyServer\server.pl param1 param2)
Next go to contol panel, Services and configure your new service as you wish. You will able to run or stop this service by using section 'Services' of control panel.
Good lucke, I hope that I helped you :-).
--------------------------------
SV* sv_bless(SV* sv, HV* stash);
| [reply] [d/l] [select] |
Hey nite_man!! Thanks for the support...., but i was unable to run the instsrv.exe or srvany.exe... Ya, you're right my socket server is running on win NT. I don't pass any arguments to the server, but a string paramater is all.
I also don't get the REG_SZ type you were specifying.. would appreciate if you could explain... or suggest something else... Thanks!!
| [reply] |
Sorry, I forgot one thing - those utilities don't included into standart windows distributive. You should download srvany or both utilities and install them on your computer. Please, read this example which provides you to create a new service on your system.
If you will need any help I will answer you cheerfully. Good luck!
--------------------------------
SV* sv_bless(SV* sv, HV* stash);
| [reply] |