C:\>python Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import subprocess >>> p= subprocess.Popen(['ver'],shell=True, stdin=subprocess.PIPE ,stdout=subprocess.PIPE) >>> for i in p.stdout.read().split('\n'): ... print i ... Microsoft Windows [Version 6.1.7601] ね。簡単でしょ。 Pythonから別のプロセスを