How to make a subprocess.call timeout using python 2.7.6?

后端 未结 5 1958
暗喜
暗喜 2020-12-15 23:31

This has probably been asked but I cannot find anything regarding a subprocess.call timeout when using python 2.7

5条回答
  •  悲&欢浪女
    2020-12-15 23:55

    In python 3.3 timeout argument was added.

    https://docs.python.org/3/library/subprocess.html#subprocess.call

提交回复
热议问题