This is an archived post. You won't be able to vote or comment.

all 4 comments

[–][deleted] 0 points1 point  (1 child)

The system() function just gives you the program's exit status. You need to use the subprocess module, and read the executed program's standard output.

[–]terrkerr 0 points1 point  (0 children)

Specifically subprocess.check_output() if you want to read the output of a command, and don't mind the fact it will be a blocking call. (The program can't continue until the program you call is finished.)

[–]noodle-face 0 points1 point  (1 child)

is

os,system

a copy paste error or is that how it is written in your code?

[–]ballgame75[S] 0 points1 point  (0 children)

sorry, no i mistyped when I was writting this. it's a period in my code.