python - getting command result
Greetings all,
I'm new to python and I need a way to get the results of a command, not the exit status. As an example take "ls" i'm looking for something like
output = someCommand("ls")
os.system is neat, but this gives me the exit status not the result of the command
|