* StandardInput Not Continuing Process
@ 2010-12-08 17:25 Chase Brammer
2010-12-23 16:55 ` Chase Brammer
2010-12-25 2:45 ` Tay Ray Chuan
0 siblings, 2 replies; 5+ messages in thread
From: Chase Brammer @ 2010-12-08 17:25 UTC (permalink / raw)
To: git
I am try to directly interact with Git by using only stdin, stdout,
and stderr. So
not going through a terminal at all, but calling Git directly. I am
having an issue
with being able to continue a process that requires input.
For example, doing a clone from a HTTPS server may require a username/password.
I writing the password as utf, and also tried just UTF byes (ie no
prepended 16-bit int)
but am unable to get the process to continue and start the clone process.
Is there some signal, or trick to getting the process to continue? I
thought that sending a
"\n" would work, but that doesn't seem to be working either.
Thanks for any help!
Chase
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: StandardInput Not Continuing Process
2010-12-08 17:25 StandardInput Not Continuing Process Chase Brammer
@ 2010-12-23 16:55 ` Chase Brammer
2010-12-23 17:18 ` Brian Gernhardt
2010-12-23 17:20 ` Junio C Hamano
2010-12-25 2:45 ` Tay Ray Chuan
1 sibling, 2 replies; 5+ messages in thread
From: Chase Brammer @ 2010-12-23 16:55 UTC (permalink / raw)
To: git
Bump, any ideas?
Chase
On Wed, Dec 8, 2010 at 10:25 AM, Chase Brammer <cbrammer@gmail.com> wrote:
>
> I am try to directly interact with Git by using only stdin, stdout,
> and stderr. So
> not going through a terminal at all, but calling Git directly. I am
> having an issue
> with being able to continue a process that requires input.
>
> For example, doing a clone from a HTTPS server may require a username/password.
> I writing the password as utf, and also tried just UTF byes (ie no
> prepended 16-bit int)
> but am unable to get the process to continue and start the clone process.
>
> Is there some signal, or trick to getting the process to continue? I
> thought that sending a
> "\n" would work, but that doesn't seem to be working either.
>
> Thanks for any help!
>
> Chase
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: StandardInput Not Continuing Process
2010-12-23 16:55 ` Chase Brammer
@ 2010-12-23 17:18 ` Brian Gernhardt
2010-12-23 17:20 ` Junio C Hamano
1 sibling, 0 replies; 5+ messages in thread
From: Brian Gernhardt @ 2010-12-23 17:18 UTC (permalink / raw)
To: Chase Brammer; +Cc: git
OnOn Wed, Dec 8, 2010 at 10:25 AM, Chase Brammer <cbrammer@gmail.com> wrote:
>
> I am try to directly interact with Git by using only stdin, stdout,
> and stderr. So
> not going through a terminal at all, but calling Git directly. I am
> having an issue
> with being able to continue a process that requires input.
>
> For example, doing a clone from a HTTPS server may require a username/password.
> I writing the password as utf, and also tried just UTF byes (ie no
> prepended 16-bit int)
> but am unable to get the process to continue and start the clone process.
>
> Is there some signal, or trick to getting the process to continue? I
> thought that sending a
> "\n" would work, but that doesn't seem to be working either.
Depending on what language you're using and your pipe settings, you might need to issue an fflush(git_stdin).
~~ Brian
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: StandardInput Not Continuing Process
2010-12-23 16:55 ` Chase Brammer
2010-12-23 17:18 ` Brian Gernhardt
@ 2010-12-23 17:20 ` Junio C Hamano
1 sibling, 0 replies; 5+ messages in thread
From: Junio C Hamano @ 2010-12-23 17:20 UTC (permalink / raw)
To: Chase Brammer; +Cc: git
Certain things do want a real user sitting at the terminal (or GUI) even
when the standard streams are connected elsewhere, and password input
is one of the obvious things that would explicitly want to read from the
tty.
Perhaps driving whatever script you are writing via "expect" would work?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: StandardInput Not Continuing Process
2010-12-08 17:25 StandardInput Not Continuing Process Chase Brammer
2010-12-23 16:55 ` Chase Brammer
@ 2010-12-25 2:45 ` Tay Ray Chuan
1 sibling, 0 replies; 5+ messages in thread
From: Tay Ray Chuan @ 2010-12-25 2:45 UTC (permalink / raw)
To: Chase Brammer; +Cc: git
On Thu, Dec 9, 2010 at 1:25 AM, Chase Brammer <cbrammer@gmail.com> wrote:
> For example, doing a clone from a HTTPS server may require a username/password.
> I writing the password as utf, and also tried just UTF byes (ie no
> prepended 16-bit int)
> but am unable to get the process to continue and start the clone process.
Try putting the username and password in ~/.netrc, or in the url with
https://user:pwd@foo.com/ - that way, you can skip the "input process"
altogether.
--
Cheers,
Ray Chuan
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-12-25 2:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-08 17:25 StandardInput Not Continuing Process Chase Brammer
2010-12-23 16:55 ` Chase Brammer
2010-12-23 17:18 ` Brian Gernhardt
2010-12-23 17:20 ` Junio C Hamano
2010-12-25 2:45 ` Tay Ray Chuan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).