1004029365 / apparat

Automatically exported from code.google.com/p/apparat
0 stars 1 forks source link

tdsi always terminates batch file (windows) #40

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
if I modify tdsi.bat to

:: @echo off
scala -cp "%~dp0\*" apparat.tools.tdsi.TurboDieselSportInjection %*
echo yo

I expect to see "yo" message, but I don't. If I call tdsi from another batch 
file, it terminates as well, so basically I can't run any other command after 
tdsi is done.

Original issue reported on code.google.com by makc.the...@gmail.com on 12 Dec 2010 at 2:23

GoogleCodeExporter commented 8 years ago
I've found ugly workaround to this:

start /w cmd /c tdsi.bat -i ...

but this way tdsi pops up in its own console window, and once it's done, the 
window is closed and you don't have a chance to see its output.

Original comment by makc.the...@gmail.com on 12 Dec 2010 at 2:27

GoogleCodeExporter commented 8 years ago
ha! start /w is not necessary, cmd /c is wise enough to not kill my batch file 
:) this means tdsi output gets routed where it should, and this issue now has 
zero impact.

Original comment by makc.the...@gmail.com on 12 Dec 2010 at 2:49

GoogleCodeExporter commented 8 years ago
TDSI is not able to terminate your process and does not modify the standard 
exit code. I am glad you could navigate around this issue. I have no clue why 
the echo does not happen.

Original comment by joaebert on 12 Dec 2010 at 1:54