Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8128165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:47:22+00:00 2026-06-06T07:47:22+00:00

I would need little help here. I’m trying to get the git respository from

  • 0

I would need little help here. I’m trying to get the git respository from my corporate server via ssh.

the command to run is git clone ssh://username@someserver.com/somefile.git/

I’m a newbie to python programming and looking out for some assistance.

def getRepository():
    command =  'ssh://username@someserver.com/somefile.git'
    clone_process = subprocess.Popen(['git','clone',command],stdin = subprocess.PIPE, stdout = subprocess.PIPE,stderr=subprocess.PIPE)
    output,error = clone_process.communicate(input='password') 


if  __name__ == '__main__':
    getRepository()

During this process, it prompts for user password which I thought communicate(input=’password’) would take care but it does not.

Actually it takes some time to prompt for password and I have to read that line before I give the password as input. How do I achieve this?

I tried writing the stdout in a file and read the file till I get that line but that too did not work..

Also, when I enter the password manually I don’t see the progress of downloading on the terminal. is there a way to get that too?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T07:47:24+00:00Added an answer on June 6, 2026 at 7:47 am

    Use pexpect module to provide interactive inputs

    See one of my previous example for the answer: Simplest way to run expect script from python

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok here's a little problem I would love to get some help on. I
Need a little help here : I'm out of ideas now... Here's what I
Need a little help here. I'm new to Coldfusion and I use CF6. I
I need a little help with an if statement in php. I'm trying to
I would need to get a Regular Expression, which matches all Unicode control characters
I would need some help in python. I'm new in python. I used to
Im a javascript newbie and would need some help with this simple thing... I
I'm trying to work out what regular expression I would need to change this
I'm a PHP programmer by default, and I need a little help with a
Little help need with jquery sortable. I have a nested list like so: <div

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.