in reply to Re^3: Can't Stop my PerlSvc
in thread Can't Stop my PerlSvc

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.