Python: How to get stdout after running os.system?
Question or problem about Python programming: I want to get the stdout in a variable after running the os.system call. Lets take this line as an example: batcmd=”dir” result = os.system(batcmd) result will contain the error code (stderr 0 under Windows or 1 under some linux for the above example). How can I get the […]
Continue Reading