![]() |
subprocess and tty input - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: subprocess and tty input (/thread-19394.html) |
subprocess and tty input - gw1500se - Jun-26-2019 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. RE: subprocess and tty input - Larz60+ - Jun-27-2019 you may want to look at https://pypi.org/project/autologin/ RE: subprocess and tty input - gw1500se - Jun-27-2019 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. |