P is for Practical | |
PerlMonks |
Re: Using Map and RegEx for data extractionby GotToBTru (Prior) |
on Oct 15, 2014 at 22:23 UTC ( [id://1103979]=note: print w/replies, xml ) | Need Help?? |
Something similar we're using at present. We have 12 processes running on a remote Windows server, each started by a batch file. I added a line to each batch file, right after the line that invokes the actual process, to set the window title to "Doornail path/batchfile"; this identifies a process that has aborted. The perl looks for Doornail in the tasklist, kills the aborted ("zombie") window, and uses the second part of the window title to restart it. The loop is to limit how long this runs; I don't quite trust it to run on its own yet.
Updated for clarity
1 Peter 4:10
In Section
Seekers of Perl Wisdom
|
|