gud*_*dge 11 python subprocess popen whiptail
我有以下命令通过popen运行:
p = subprocess.popen(["/usr/bin/whiptail", "--title", "\"Progress\"", "--gauge", "\"\"", "6", "50", "0"], stdout=subprocess.PIPE, stding=subprocess.PIPE)
Run Code Online (Sandbox Code Playgroud)
要停止whiptail命令运行,我需要将EOF发送到stdin.
如何在Python中将EOF发送到stdin?
或者我只是调用p.terminate()
| 归档时间: |
|
| 查看次数: |
7022 次 |
| 最近记录: |