Sep-18-2020, 03:28 PM
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
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