I am struggling with a challange in python. I have an idea that my script must evoke an executable file. I am able to pass this executable a username, but what comes to password I need to enter it manually in command line. I want to automate the application, so I dont enter it manually every time. Here is the script. I run it under Windows.
`
import subprocess
p = subprocess.Popen(".\executable.exe --user domain\user", stdin=subprocess.PIPE, shell=True)
p.communicate(input="Mypassword")`