<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nullpobug</author_name>
  <author_url>https://blog.hatena.ne.jp/nullpobug/</author_url>
  <blog_title>偏った言語信者の垂れ流し</blog_title>
  <blog_url>https://tokibito.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>Pythonでプログラム(プロセス)の終了コード(終了ステータス)を指定して終了するには、sys.exitの引数に数値を指定する。 試したのはPython3.4。 29.1. sys — システムパラメータと関数 — Python 3.4.3 ドキュメント コード main.py import sys def main(): # 終了コード123でプログラムを終了する sys.exit(123) if __name__ == '__main__': main() 実行結果 $ python3.4 main.py $ echo $? 123 ジョブ管理(タスクスケジューラ)を行うミドルウェアから…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftokibito.hatenablog.com%2Fentry%2F20151002%2F1443793867&quot; title=&quot;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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-10-02 22:51:07</published>
  <title>Pythonでプログラムの終了コードを指定する</title>
  <type>rich</type>
  <url>https://tokibito.hatenablog.com/entry/20151002/1443793867</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
