-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How would I answer to prompts by running say a git pull command to fill in user/pass? #56
Comments
I've not tried doing anything with password prompts. You can write to stdin, so that might be sufficient. |
How would that work in the context of Spur? Any samples or examples ? |
One you've spawned a process, you can write to its stdin using process = shell.spawn(["sh", "-c", "read value; echo $value"])
process.stdin_write(b"hello\n")
result = process.wait_for_result() |
Yes, I got this one resolved myself.
Thanks anyway. I should have read the documentation.
…On Tue, Jan 10, 2017 at 7:02 PM, Michael Williamson < ***@***.***> wrote:
One you've spawned a process, you can write to its stdin using
stdin_write(), for instance:
process = shell.spawn(["sh", "-c", "read value; echo $value"])
process.stdin_write(b"hello\n")
result = process.wait_for_result()
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#56 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABpo2lNCwEqJjfVjiE91bedXOYdTGxroks5rQ9WpgaJpZM4Le2VF>
.
--
Ali Gajani
Founder at Mr. Geek
www.mrgeek.me
www.aligajani.com
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: