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.

Recommended Answers

All 2 Replies

I think that will help. Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.