I tried os.popen and the like ways. But it does not seem to work for me. I’m wondering if there’s anything different between a command 'echo xxxx' and 'java -version', and how can I get 'java -version' output with python code.
I tried os.popen and the like ways. But it does not seem to work
Share
is the real way to go.
An even simpler way could be