python ã§ã³ãã³ããå®è¡ããã«ã¯ subprocess ã¢ã¸ã¥ã¼ã«ã使ã 以åã«ãæ¸ãããã ãã©ãæ°ã«ãªã£ãã®ã§ãå度調ã¹ç´ããã suprocessã§ã³ãã³ããå®è¡ãã åç´ã«ã³ãã³ããå®è¡ããã«ã¯ãsubprocess.call ã使ãã®ã楽ã§ãã ããã¯ã¯ã©ã¼ã ` ãos.system ã®ãããã« subprocess .call() ã使ãããã§ãã import subprocess cmd = "sleep 30" proc = subprocess.call( cmd , shell=True) å®è¡ããçµæã¯ãã¡ãã(ã·ã§ã«çµç±ï¼ USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND takuya 16804 0.0 0.0 20960 4076 pts/4 Ss 03:49 0:00 /bin/bash ta
{{#tags}}- {{label}}
{{/tags}}