Code: Alles auswählen
out=subprocess.Popen(cmd.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate[0]
siehe: http://docs.python.org/library/subproce ... ommunicateNote: The data read is buffered in memory, so do not use this method if the data size is large or unlimited.
was heißt jetzt "large"? ist 3Mb large? das ganze läuft unter windows UND linux so nebenbei