in reply to Re: Turn a perl script into a Win32 Service
in thread Turn a perl script into a Win32 Service

wol,
First, where did you get Win32::Daemon from? The one on CPAN is very old - you should get the one directly from Roth's site (links elsewhere in the thread) though I don't know if Win32::Daemon::Simple will still work with it.

Second, what's your configuration? I am specifically interested in AS 5.10 on Vista but have XP with SP3 to test with as well. If you are not familiar with Roth's forums for his modules, you should cross post this there (which is what I did for my question - link in the root node).

Third, thank you so much for actually trying to get this to work rather than just point to resources that aren't working. I don't mean that as a slight to others who have contributed but I have explained on a number of occassions that SrvAny just isn't working and that converting an existing application over to Win32::Daemon isn't as simple as use Win32::Daemon; (looking for a "how to" guide).

Cheers - L~R

Replies are listed 'Best First'.
Re^3: Turn a perl script into a Win32 Service
by wol (Hermit) on Oct 14, 2008 at 16:23 UTC
    OK - lots of little questions to answer...

    Yes, the Win32::Daemon module came direct from Roth Consulting's Official Win32::Daemon Home Page, using the dead simple instructions there:

    If you have ActivePerl (aka Perl from ActiveState Tool Corp. version 5.005 or higher) or if you have Core Perl 5.005 compiled with the PERL_OBJECT macro defined you can auto download and install the extension. You need to run the Perl Package Manager script which comes with Perl in the perl\bin directory:
    perl ppm.pl install http://www.roth.net/perl/packages/win32-daemon.ppd
    This will automatically download and install the latest version.
    I'm running wih Perl v5.8.7 (build 813 from ActiveState) on Win XP.

    I've not cross-posted to the Win32::Daemon forms there, but I'll try tomorrow (time to go $home now).

    I don't know if Win32::Daemon::Simple will still work with it.
    That would appear to be the million dollar question (but remember that the value of your question can go down as well as up).

    Until tomorrow...

    --
    .sig : File not found.