Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
subprocess and tty input
#1
I'm writing a script that launches a process via Popen that reads a password from the tty rather than stdin. Is there a way to send that string? There is something called Pexpect is that right solution? TIA.
Reply
#2
you may want to look at https://pypi.org/project/autologin/
Reply
#3
Thanks for the suggestion. However, I think pexpect is doing mostly what I want. I am having an issue collecting the command output but I will open a new thread for that.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  A question about subprocess taking input from command line and returning output! Aurimas 8 5,162 May-15-2019, 04:02 PM
Last Post: Aurimas

Forum Jump:

User Panel Messages

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