<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>methane</author_name>
  <author_url>https://blog.hatena.ne.jp/methane/</author_url>
  <blog_title>methaneのブログ</blog_title>
  <blog_url>https://methane.hatenablog.jp/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>次の2つのスクリプトは同じに見える。 #!/usr/bin/env python import os for i in xrange(100): cmd = &quot;tail -f /var/log/syslog | cat &quot; os.system(cmd) #!/usr/bin/env python import subprocess for i in xrange(100): cmd = &quot;tail -f /var/log/syslog | cat &quot; subprocess.call(cmd, shell=True) タイプ数が少ない分前者のほうが良さそうに見える。 でも、このスクリプトを止めよ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmethane.hatenablog.jp%2Fentry%2F20110509%2F1304956974&quot; title=&quot; バッチがわりに Python を使うときは、 os.system よりも subprocess.call を使おう - methaneのブログ&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>2011-05-09 01:02:54</published>
  <title> バッチがわりに Python を使うときは、 os.system よりも subprocess.call を使おう</title>
  <type>rich</type>
  <url>https://methane.hatenablog.jp/entry/20110509/1304956974</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
