python subprocess, redirecting exit code to a file

前端 未结 0 1643
傲寒
傲寒 2021-02-07 04:15

Using subprocess.run(), we are able redirect stdout and stderr to an external file. Is there any way to also redirect exit code as well?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题