subprocess モジュール

subprocess モジュール

[APIドキュメント]

クラス

関数

run

@ [APIドキュメント]

run(args, *, stdin=None, input=None, stdout=None, stderr=None, capture_output=False, shell=False, cwd=None, timeout=None, check=False, encoding=None, errors=None, text=None, env=None, universal_newlines=None)

  • 引数
    • args : 実行するコマンドとそのオプション・引数を、順番に格納したリスト <list(str)>
  • 戻り値
    • return : プロセスが終了したときに返されるインスタンス <CompletedProcess>