<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ohke</author_name>
  <author_url>https://blog.hatena.ne.jp/ohke/</author_url>
  <blog_title>け日記</blog_title>
  <blog_url>https://ohke.hateblo.jp/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>ちょっとしたツールのためにPythonからGitやDockerなどのコマンドを実行してゴニョゴニョする、ということはよくあるかと思います。 OSコマンドを手軽に実行するPython標準ライブラリ subprocess で頻用する機能について使い方を整理します。 docs.python.org 環境 $ python --version Python 3.6.8 subprocess Python上から他のプログラム (コマンド) を別のプロセスで実行することができる標準ライブラリです。 使い方はシンプルで subprocess.run([&quot;実行したいコマンド&quot;, &quot;オプションなど&quot;, ...]…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fohke.hateblo.jp%2Fentry%2F2020%2F01%2F18%2F131500&quot; title=&quot;Python: subprocessでOSコマンドを実行する - け日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-01-18 13:15:00</published>
  <title>Python: subprocessでOSコマンドを実行する</title>
  <type>rich</type>
  <url>https://ohke.hateblo.jp/entry/2020/01/18/131500</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
