Jun-26-2019, 07:25 PM
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.
| subprocess and tty input |
| Jun-26-2019, 07:25 PM 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. Jun-27-2019, 03:35 PM you may want to look at https://pypi.org/project/autologin/ Jun-27-2019, 04:13 PM 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. |
| |
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| A question about subprocess taking input from command line and returning output! | Aurimas | 8 | 7,868 | May-15-2019, 04:02 PM Last Post: Aurimas | |