I have the following problem:
I have a python program where I call a ".bat" file (autentica.bat). This file, in turn, call a java program. Below the codes:
The return of this program should bring "ok" or "not ok".
But instead of receiving the return "ok" or "not ok", I get the command itself of ".bat" file. That means, the comand in Python "output = p.stdout.read()" is returning "java -Djava.library.path="C:\Nitgen" -jar C:\Nitgen\Busca3-N_java.jar C:\Nitgen\arquivo.rec" and and not the java program's returner that should be returning
Why is this happening? Why is Python returning the command itself in ".bat" and not the return it should be returning by Java?