0

So I have figured out how to receive output from an application using

process = subprocess.Popen("my_app", shell = True, stdout = subprocess.PIPE, stderr = subprocess.PIPE)
info = process.communicate()

But how do I SEND info TO an app? I have an application that asks for a yes(y) or no(n) confirmation before proceeding. Is subprocess waiting for this app to exit before communicating? Is this app still considered 'alive' while it waits for input? Please help me automate this manual task. Thanks.

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by txwooley
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.