Screamer has a couple of good points on permissions of services. I've run into several instances where I did not have permission to read/write to a folder. I was not catching/logging the exception correctly. If you use a tool like PerlApp/PerlSvc, they will do some logging to the Windows Event Log for you. If you are rolling your own logging, might I suggest the CPAN (
Win32::EventLog).
Even though your 3rd-party-service-program-runner-thingy works for other executables, you may be running into trouble running a script through Perl. You might try moving your parent script to be a service itself and starting/stopping it through the services API, which is quite dandy. If you go this route, there are two modules that make the job quite easy,
Win32::Daemon and
Win32::Process. I've had a lot of success using these two modules together -- in conjunction with the afore mentioned logging module.
If you would like more specific help rather than random, "hey try this" advice, post some code so we can dig through it!
Good Luck!
Casey
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.