Python Popen().stdout.read() hang

前端 未结 3 1285
陌清茗
陌清茗 2021-02-07 16:22

I\'m trying to get output of another script, using Python\'s subprocess.Popen like follows

process = Popen(command, stdout=PIPE, shell=True)
exitc         


        
3条回答
  •  北荒
    北荒 (楼主)
    2021-02-07 16:51

    You can see how to deal with hanging reading of stdout/stderr in the next sources:

    readingproc

提交回复
热议问题