Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 18035

How to get output of command line to python [duplicate]

$
0
0

I run windows command line programm from python, the command line programm return strings, for example: I run that line

subprocess.call("RPiHubCMDTool.exe dev", shell=True)

and I see in cmd window the output dev0 FT2232H RPi HUB Module A 136241 A , dev1 FT2232H RPi HUB Module B 136242 B. I whant to work in python with that output. How to bring it from cmd window to python? Could you provide an example?


Viewing all articles
Browse latest Browse all 18035

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>