Python Forum
Automatic user/password entry on prompt by bash script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automatic user/password entry on prompt by bash script
#1
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
Reply
#2
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.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#3
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
Reply
#4
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?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Seeking feedback: dynamic_i18n — automatic dynamic translation of HTML via OpenAI Bona2000 7 5,090 Sep-15-2025, 03:28 PM
Last Post: Bona2000
  Problems passing arguments containing spaces to bash script and then on to python kaustin 6 15,567 Apr-03-2024, 08:26 PM
Last Post: deanhystad
Information automatic document renaming lisa_d 2 2,699 Mar-20-2024, 06:34 PM
Last Post: Pedroski55
  math formula does not give the same result as bash script [SOLVED] AlphaInc 3 2,363 Apr-02-2023, 07:21 PM
Last Post: AlphaInc
  Matplotlib - automatic update frohr 1 2,239 Mar-29-2022, 07:05 PM
Last Post: deanhystad
  Randomizer script to provide options based on user and priority cubangt 10 5,367 Mar-11-2022, 07:22 PM
Last Post: cubangt
  automatic create folders Mr_Kool 4 4,341 Dec-21-2021, 04:38 PM
Last Post: BashBedlam
  Call a bash script from within a Python programme Pedroski55 6 4,549 Dec-06-2021, 01:53 PM
Last Post: DeaD_EyE
  need to skip password prompt, continue... tester_V 2 2,649 Oct-19-2021, 05:49 PM
Last Post: tester_V
  Creating a calculation based on user entry blakefindlay 2 3,175 Jan-26-2021, 06:21 PM
Last Post: blakefindlay

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020