meta data for this page
  •  

This is an old revision of the document!


def run_command(cmd):
    output = Popen(cmd, stdout=PIPE)
    return output.communicate()[0].decode("utf-8").split("\n")

see contextlib to catch other components stdout/stderr.