1

以下が機能しないのはなぜですか?

import subprocess

process = subprocess.Popen('cmd.exe', shell=False, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=None)


私が得る出力は次のとおりです。

The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.

その後、プロセスはエラーなしで終了します。私はWindows 7を実行しています。

4

2 に答える 2