Python Forum
Automatic user/password entry on prompt by bash script - 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: Automatic user/password entry on prompt by bash script (/thread-33676.html)



Automatic user/password entry on prompt by bash script - PBOX_XS4_2001 - May-16-2021

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


RE: Automatic user/password entry on prompt by bash script - Skaperen - May-18-2021

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.


RE: Automatic user/password entry on prompt by bash script - PBOX_XS4_2001 - May-18-2021

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


RE: Automatic user/password entry on prompt by bash script - Skaperen - May-18-2021

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?