1) Our CTS server is a Telephony Proxy Server that produces log files daily of about 2gigs. A perl process compress those down to about 140meg and the process I'm working on now, transfers those zipped files to a management server. So the CTS server doesn't have much to do with my problem. My process transfers the files just fine, it's just that I can't stop the process by 'net stop CspBkpSvc'. My guess was that a long running transfer (140megs from east to west coast) could not be stopped in the middle but I need it to.
2) Your loop example is right. I start processing backup transfers if we are still in the maintenance window.
3) For each site to backup there may be 1 or many logs. Since a file transfer can take 15-20 minutes I need check to see if I am still in the maintenance window before I start the next transfer. Thus the several 'BetweenHoursOf' checks.
I think I have figured out why the program wouldn't keep running after launched from the service per your example. It has to do with not reading it's config file right. So I'm getting on top of the binding and extracting of files in PerlSvc and hope to have it figured out today. I'll post back.
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.