I have the following problem:
I created a script package that calls itself there (to be able to write a log in parallel). In the script, I start another process (e.g. start startServer.bat ) that starts the Java process and keeps opening all the time.
In my original script, I wait 30 seconds, check if the process is running and execute:
exit /B 0
Unfortunately, this does not work, the window shows that exit / B 0 is being calculated, but the window still remains open. When I close the window with another process (this means that the "child" processes are running in my .bat), my script continues to run.
So:
scriptA.bat
-> in there I call: start startServer.bat -> wait 30 seconds -> check is server is started -> exit /B 0 Process hangs up!
Which is very strange if I wrap another script, for example:
scriptB.bat
-> call scriptA.bat -----> in there I call: start startServer.bat -----> wait 30 seconds -----> check if server is started -----> exit /B 0 -> scriptA.bat continues without any hangup!
I also tried the same with output 0 (without / B) too, same result! In the first case, it freezes, in the second case, my window closes as expected ...
Have any of you ever experienced such a problem and knew what was wrong here? The process freezes!
murxx source share