<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takashi-tobey</author_name>
  <author_url>https://blog.hatena.ne.jp/takashi-tobey/</author_url>
  <blog_title>技術を楽しもう！</blog_title>
  <blog_url>https://www.it-enjoy.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>既存のスクリプト実行前に、処理を追加したいが、 既存のスクリプトは変更したくない！ということがあると思います。 スクリプトを呼び出す形にすれば、 既存のスクリプトを変更せずに、処理を追加することができます。 普段は下記のように実行していたとします。 ./sagyouA.py 10.0.0.1 hogehoge 呼び出し元となるスクリプトを用意します。 サンプルなのであまり意味の無い内容になっていますが、 既存のスクリプトを変えずに、実行する条件を付けたりできます。 [jizen.py] #!/usr/bin/python import subprocess pram = sys.argv ad…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.it-enjoy.com%2Fentry%2F2020%2F07%2F10%2F174910&quot; title=&quot;Pythonから他のPythonを引数付きで実行する - 技術を楽しもう！&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>https://cdn-ak.f.st-hatena.com/images/fotolife/t/takashi-tobey/20200708/20200708165024.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-07-10 17:49:10</published>
  <title>Pythonから他のPythonを引数付きで実行する</title>
  <type>rich</type>
  <url>https://www.it-enjoy.com/entry/2020/07/10/174910</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
