Posts by Gabriel Amorim • 31 points
1 post
-
2
votes1
answer883
viewsQ: I wonder how I get the result of a command in python that runs in CMD and save in a variable,
That program drips a IP, would like to pick up the result of that ping that is done on this line os.system ('ping -n 4 {} '.format(ip)) that opens the CMD and drips the IP, and save to any variable,…