Interact with a Windows console application via Python

后端 未结 5 1338
花落未央
花落未央 2020-12-03 02:17

I am using python 2.5 on Windows. I wish to interact with a console process via Popen. I currently have this small snippet of code:

p = Popen( [\"console_app         


        
5条回答
  •  有刺的猬
    2020-12-03 02:55

    I think you might want to try to use readline() instead?

    Edit: sorry, misunderstoud.

    Maybe this question can help you?

提交回复
热议问题