26 AUTOMATIC RESTARTS AND MULTITHREADING
In this chapter, I’ll explore solutions to a couple of vexing issues for any coder: intermittent failures and hangs, specifically the type that usually execute successfully if restarted. I’ll detail how to automatically restart an intermittent failure of any process in a bat file. Hangs are a little trickier, but I’ll introduce a technique for terminating or killing the hung process before restarting it. For both types of issues, I’ll step through how to create a solution, including design considerations, specifications, coding, and even testing.
Along the way, I’ll introduce some interesting commands ...
Get The Book of Batch Scripting now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.