Preserving bash redirection in a python subprocess

后端 未结 3 785
伪装坚强ぢ
伪装坚强ぢ 2021-01-29 02:12

To begin with, I am only allowed to use python 2.4.4

I need to write a process controller in python which launches and various subprocesses monitors how they affect the

3条回答
  •  我在风中等你
    2021-01-29 02:52

    The subprocess module is good.

    You can also do this on *ix with os.fork() and a periodic os.wait() with a WNOHANG.

提交回复
热议问题