{"type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20121118%2F1353247429\" title=\"python\u306esubprocess\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u5916\u90e8\u30d7\u30ed\u30bb\u30b9\u3092\u5b9f\u884c\u3059\u308b - \u30e1\u30e2\u7f6e\u304d\u5834\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","provider_name":"Hatena Blog","blog_url":"https://y0m0r.hateblo.jp/","title":"python\u306esubprocess\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u5916\u90e8\u30d7\u30ed\u30bb\u30b9\u3092\u5b9f\u884c\u3059\u308b","description":"subprocess\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u5916\u90e8\u30d7\u30ed\u30bb\u30b9\u3092\u5b9f\u884c\u3067\u304d\u308bcall\u3001check_call\u3001check_output\u3068\u95a2\u6570\u304c\u3042\u3063\u3066\u3061\u3087\u3063\u3068\u305a\u3064\u6319\u52d5\u304c\u7570\u306a\u308bsubprocess.call\u306f\u30d7\u30ed\u30bb\u30b9\u3092\u5b9f\u884c\u3057\u3001returncode\u3092\u8fd4\u3059 from subprocess import call # call call([\"ls\", \"-l\"]) print return_code # => 0 subprocess.check_call\u306freturncode\u304c0\u3067\u306a\u3044\u5834\u5408\u306bCalledProcessError\u3092raise\u3059\u308b \u623b\u308a\u5024\u306freturncode from subprocess import ch\u2026","image_url":null,"published":"2012-11-18 23:03:49","url":"https://y0m0r.hateblo.jp/entry/20121118/1353247429","width":"100%","height":"190","blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834","author_name":"yuheiomori0718","provider_url":"https://hatena.blog","version":"1.0","categories":["python","memo"]}