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
Information subprocess.Popen() suddenly giving me grief? davecotter 3 529 Dec-13-2023, 10:49 PM
Last Post: davecotter
  How to pass encrypted pass to pyodbc script tester_V 0 800 Jul-27-2023, 12:40 AM
Last Post: tester_V
  Interactive plots that can be embed in web page mouse9095 1 570 Jun-12-2023, 04:51 PM
Last Post: deanhystad
  Use subprocess.Popen and time.sleep chucky831 2 1,890 Aug-11-2022, 07:53 PM
Last Post: carecavoador
  Pass variable to subprocess paulo79 4 9,954 Apr-12-2022, 12:35 PM
Last Post: DeaD_EyE
  Subprocess.Popen() not working when reading file path from csv file herwin 13 14,617 May-07-2021, 03:26 PM
Last Post: herwin
  Did subprocess.Popen() causes main routine to pause stdout? liudr 4 3,552 May-04-2021, 08:58 PM
Last Post: liudr
  disable subprocess.popen prompt echo paul18fr 1 1,966 Feb-04-2021, 02:50 AM
Last Post: Larz60+
  interactive map and function hurc60248 1 1,722 Jan-08-2021, 09:22 PM
Last Post: Larz60+
  Pass by object reference when does it behave like pass by value or reference? mczarnek 2 2,513 Sep-07-2020, 08:02 AM
Last Post: perfringo

Forum Jump:

User Panel Messages

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