Pythonããã³ãã³ããæãã¢ã¸ã¥ã¼ã«ãsubprocessã®ä½¿ãæ¹ãæ´çãã¦ã¿ããååã¯ããã¥ã¢ã«ããªãã£ã¦ãã http://docs.python.org/library/subprocess.html subprocessã¯os.system, os.spawn, os.popen, popen2, commandsãªã©ã®ã¢ã¸ã¥ã¼ã«ã«åã£ã¦ä»£ãä½ç½®ä»ãã ã¨ã¯ç¥ããªãã£ããããã¥ã¢ã«ã¯èªãã§ã¿ããã®ã ãã³ã¼ãã¯replã«ã³ããããã¨(UnixçOSãªã)åãã¯ãã æºå import sys,os from subprocess import * ã³ãã³ãããã®åºåãæãã æ¨æºåºåãæ¨æºã¨ã©ã¼åºåã¯communicate()㧠perlã ã¨`cmd args` output,_=Popen(['/bin/ls', '/etc/hosts'], stdout=PIPE).commu
{{#tags}}- {{label}}
{{/tags}}