getoutput

python3 subprocess.getoutput(cmd) 执行linux命令进入交互模式后一直卡住了

进入交互模式是我们预期之外的,记录一下。 进入交互之后linux一直等待你的输入,所有`subprocess.getoutput()`就一直卡着呢~,我们加入`timeout` 通过学习`subprocess`中支持`timeout`有: ![image](https://img2023.cnblo ......
subprocess getoutput 命令 python3 模式
共1篇  :1/1页 首页上一页1下一页尾页