<?xml version="1.0" encoding="windows-1252"?>
<node id="230468" title="Re: Install a perl script as a Win NT/2000/XP service." created="2003-01-27 22:10:48" updated="2005-06-25 16:51:50">
<type id="11">
note</type>
<author id="211915">
ibanix</author>
<data>
<field name="doctext">
Very interesting. &lt;BR&gt;&lt;BR&gt;

I prefer to compile my scripts with &lt;A HREF="http://www.indigostar.com/perl2exe.htm"&gt;perl2exe&lt;/A&gt; and install the binary as a service. I've used instsrv and srvany, but I prefer to use the freely available &lt;A HREF="http://www.firedaemon.com/"&gt;FireDaemon&lt;/A&gt;. Get the v0.09 version -- the new version only supports 1 service without a registration code.&lt;BR&gt;&lt;BR&gt;

You might also consider [cpan://Win32::Daemon] for a pure-perl solution.&lt;BR&gt;&lt;BR&gt;

&lt;b&gt;Update&lt;/b&gt;: Srvany.exe and instsrv.exe are part of the Windows NT 4.0 Resource Kit, available &lt;A HREF="http://www.microsoft.com/downloads/details.aspx?FamilyID=3e972e9a-e08a-49a2-9d3a-c0519479e85a&amp;DisplayLang=en"&gt;here&lt;/A&gt;.&lt;BR&gt;&lt;BR&gt;

Cheers,&lt;BR&gt;
ibanix&lt;BR&gt;&lt;BR&gt;

&lt;code&gt;$ echo '$0 &amp; $0 &amp;' &gt; foo; chmod a+x foo; foo;&lt;/code&gt;</field>
<field name="root_node">
230377</field>
<field name="parent_node">
230377</field>
</data>
</node>
