Pythonのsubprocessモジュールは、新しいプロセスを生成、プロセスの入出力管理、プロセスの終了コードを取得できます。つまりsubprocessモジュールを使用すると、Pythonスクリプト内から他のプログラムやコマンドを起動することができます。例えばテキスト ...
Pythonスクリプトから、PCにインストールされている電卓を起動したり、pingのようなコマンドライン命令を実行したり、あるいは特定のファイルをOS標準のテキストエディタで開いたり…。 このように、Pythonプログラムの外部にあるアプリケーションや ...
I will start with saying that documentation for subprocess.Popen is not clear. I was using subprocess.run(..., input=..., ...) and needed to monitor other things ...