(almost 3 years later...) Hi Pigman, I liked the elegance of your solution and currently I am trying to get it to work. I run into a few hiccups. First, the 2nd line in execute.bat refers to ex...
See more...
(almost 3 years later...) Hi Pigman, I liked the elegance of your solution and currently I am trying to get it to work. I run into a few hiccups. First, the 2nd line in execute.bat refers to execute.bat itself. Shouldn't it refer to the name of a bash shell script? Second, it seems cmd.exe instances that are run from Task Scheduler are sand-boxed these days. Running execute.bat and then stop.bat from command line works perfectly. But when I trigger 'run now' for both in the Task Scheduler, the stop.bat will not kill the running bash task and sub processes, so the shutdown will progress, even if power is restored. Did anyone run into this too? How did you solve it?