I am writing an automation script with Python in Linux. It calls another process which requires the user to enter a password.
I have implemented it using pexpect where I just spawn the command and then do an interact.
Is there an alternative method? I cannot use pexpect as I need to run a script on a machine which does not have pexpect installed.