Python Forum

Full Version: Automatic user/password entry on prompt by bash script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

im tryin to build a project where i would like to enter the password/user automatically when i run as bash script through my python scrtipt, can I do this without using pexpect ?

Wall Wall Wall Wall Wall
none of your stuff can be accessed before you login. are you wanting to let anyone who tries that user name to be logged in without entering a password? that's not really a Python question.
No Im already logged in, but afterwards when I run this script a user/password is demanded, I want them to come from my python code
then we will need to see the code to understand what is being run to prompt for the password. usually this will still involve how passwords are read on your platform. is it Windows? Linux? Mac?