Python Forum
how to pass the interactive string to Popen subprocess
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to pass the interactive string to Popen subprocess
#1
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
Reply
#2
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Get an FFMpeg pass to subprocess.PIPE to treat list as text file? haihal 2 1,175 Nov-21-2024, 11:48 PM
Last Post: haihal
  Understanding subprocess.Popen Pedroski55 6 2,246 May-12-2024, 10:46 AM
Last Post: Pedroski55
Information subprocess.Popen() suddenly giving me grief? davecotter 3 1,911 Dec-13-2023, 10:49 PM
Last Post: davecotter
  How to pass encrypted pass to pyodbc script tester_V 0 1,815 Jul-27-2023, 12:40 AM
Last Post: tester_V
  Use subprocess.Popen and time.sleep chucky831 2 3,098 Aug-11-2022, 07:53 PM
Last Post: carecavoador
  Pass variable to subprocess paulo79 4 13,006 Apr-12-2022, 12:35 PM
Last Post: DeaD_EyE
  Subprocess.Popen() not working when reading file path from csv file herwin 13 25,289 May-07-2021, 03:26 PM
Last Post: herwin
  Did subprocess.Popen() causes main routine to pause stdout? liudr 4 5,486 May-04-2021, 08:58 PM
Last Post: liudr
  disable subprocess.popen prompt echo paul18fr 1 3,139 Feb-04-2021, 02:50 AM
Last Post: Larz60+
  interactive map and function hurc60248 1 2,533 Jan-08-2021, 09:22 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020