Python Forum

Full Version: how to pass the interactive string to Popen subprocess
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

How to pass the interactive string to Popen subprocess and also it should support both python 2 as well as python3 interpreters.

For example -

pass the string while opening Popen process, then shell asks for the interactive message like (Y/N). So I need to pass this string to the subprocess. Finally complete output should return.

Please help me to achieve on this. Thanks a lot.

Regards,
Maiya
We are glad to help with code after you have made an effort.
We are not here to do it for you.
Please give it a go, and then ask specific question if you have trouble.