{"provider_name":"Hatena Blog","author_name":"koreyakono","categories":["Python"],"provider_url":"https://hatena.blog","description":"Python \u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\u306b\u306f subprocess \u3092\u4f7f\u3044\u307e\u3059\u3002 \u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002 import subprocess proc = subprocess.Popen([r\"c:\\Windows\\system32\\notepad.exe\",\"test.txt\"]) proc.wait(timeout=60) \u4e0a\u8a18\u3067\u306f\u3001notepad.exe \u3067 test.txt \u3092\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u3068\u305d\u306e\u5f15\u6570\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u306b\u306f\u914d\u5217\u3092\u4f7f\u3063\u3066\u6307\u5b9a\u3057\u307e\u3059\u3002 subprocess \u306f\u8d77\u52d5\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u7d42\u4e86\u3092\u5f85\u305f\u306a\u3044\u306e\u3067\u3001wiat \u3092\u4f7f\u3063\u3066\u51e6\u7406\u5b8c\u4e86\u3092\u3059\u308b\u306e\u3092\u5f85\u3061\u307e\u3059\u3002\u3053\u306e\u6642\u3001\u30bf\u30a4\u2026","url":"https://koreyakono.hatenadiary.jp/entry/2022/03/09/085136","type":"rich","width":"100%","title":"Python \u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5","published":"2022-03-09 08:51:36","image_url":null,"version":"1.0","blog_url":"https://koreyakono.hatenadiary.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkoreyakono.hatenadiary.jp%2Fentry%2F2022%2F03%2F09%2F085136\" title=\"Python \u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5 - \u3042\u308c\u3084\u3053\u308c\u3084\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","blog_title":"\u3042\u308c\u3084\u3053\u308c\u3084","author_url":"https://blog.hatena.ne.jp/koreyakono/"}