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

BrowserUk,
I assume you named "YourService" SrvAny given your registry path.

The Bad News

Your working XP example did not work on Vista

The Good News

I know why - Vista no longer supports interactive services

Where I am at

The ActiveState PerlSvc is not free but I will check with sales to find out if it works on Vista. I still have Win32::Daemon to explore but it will be hard for me to tell which problems are related to the module versus Vista :-(

Cheers - L~R

  • Comment on Re^7: Turn a perl script into a Win32 Service

Replies are listed 'Best First'.
Re^8: Turn a perl script into a Win32 Service
by BrowserUk (Patriarch) on Oct 16, 2008 at 01:15 UTC
    I know why - Vista no longer supports interactive services

    Good news that you know why. Crap that it doesn't. I wonder about the rational behind that, but what's new with MS decision making.

    I still have Win32::Daemon to explore but it will be hard for me to tell which problems are related to the module versus Vista :-(

    I will try (late tomorrow due to commitments), to work up a working Win32::Daemon sample. I thought that I had posted one here (at least) once before, but a casual google didn't turn it up.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      BrowserUk,
      I am working from one of the examples. I will let you know if I get it working (on Vista).

      Update: It looks like the issue is the combination of running perl as a service and trying to do Win32::OLE->new('Outlook.Application'). It hangs there for a while then dies with Win32::OLE->LastError = Win32::OLE(0.1709) error 0x80010001: "Call was rejected by callee" When I kill outlook from the process table, it still fails to get the inbox. I am trying to track these problems down now.

      Cheers - L~R