I\'m trying to make a system call in Python and store the output to a string that I can manipulate in the Python program.
#!/usr/bin/python import subprocess
import os list = os.popen('pwd').read()
In this case you will only have one element in the list.