in reply to Re: Win32::OLE (Outlook) as a windows service
in thread Win32::OLE (Outlook) as a windows service
The ActiveState PDK includes a tool called PerlSvc that does seem to work. It creates an "exe" and the service wraps around that. The price tag is steep ($195 or $295 for the pro edition). What I am unsure of is if it will work with Outlook when I am not logged in. The code tries to attach to an existing Outlook process before attempting to start a new instance. When I got what I believe to be a successful test run, I was already logged in with Outlook open so it really wasn't a complete test. I am using a 21 day trial for now while I test out a few other ideas.
While I haven't been able to get it to work, example 5 in the Win32::Daemon docs looks to be the simplest complete example that would make converting an existing application fairly trivial. I have gotten example 1 to work (minus Outlook) so it does look very promising assuming I can work out my Outlook issues.
If I find that the only stumbling block preventing my application to work as a service is interfacing Outlook (assuming I can't resolve those issues), then I will leave it up to the person in charge to decide on a solution. (run it as a scheduled task and not as a service, drop Outlook and move to POP/SMTP modules, pay for the PDK assuming a complete test works, fire me, etc).
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Win32::OLE (Outlook) as a windows service
by roboticus (Chancellor) on Oct 17, 2008 at 14:59 UTC | |
by Limbic~Region (Chancellor) on Oct 17, 2008 at 15:36 UTC |