Hi,
I want to launch a java app from within python, and read back the test the java app writes in a command window. This is using python on windows.
So, I have a basic java app which brings up a cmd.exe widow, and prints "hello world", waits for 5 seconds and then closes the cmd.exe wondow.
I can run os.system("java app etc") and this works fine in that it runs, but I only get a result code sent back to me and not "helloo World"
i.e.
>>>import os
>>>os.system(java stuff)
0
>>>
How do I extract the "hello world" from the cmd.exe window?