{"thread":{"id":"25996","subject":"StandardInput Not Continuing Process","startedAt":"2010-12-08T17:25:25Z","lastAt":"2010-12-25T02:45:45Z","messageCount":5,"participants":["Chase Brammer","Junio C Hamano","Brian Gernhardt","Tay Ray Chuan"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"157612","messageId":"AANLkTikBdOLjzJxikXCwTs52RByfNZzKamK+F-JhY0mQ@mail.gmail.com","threadId":"25996","inReplyTo":null,"subject":"StandardInput Not Continuing Process","fromName":"Chase Brammer","fromEmail":"cbrammer@gmail.com","sentAt":"2010-12-08T17:25:25Z","receivedAt":"2010-12-08T17:25:25Z","isPatch":false,"sender":{"key":"cbrammer@gmail.com","avatar":"https://gravatar.com/avatar/96536ec36bad2565256a6f6aaee25498608816ff1334a5dfefc404cf1cf2459e?d=mp&s=160"},"body":"I am try to directly interact with Git by using only stdin, stdout,\nand stderr.  So\nnot going through a terminal at all, but calling Git directly.   I am\nhaving an issue\nwith being able to continue a process that requires input.\n\nFor example, doing a clone from a HTTPS server may require a username/password.\nI writing the password as utf, and also tried just UTF byes (ie no\nprepended 16-bit int)\nbut am unable to get the process to continue and start the clone process.\n\nIs there some signal, or trick to getting the process to continue?  I\nthought that sending a\n\"\\n\" would work, but that doesn't seem to be working either.\n\nThanks for any help!\n\nChase\n"},{"id":"158530","messageId":"AANLkTikvrDWYT8h_MCESd9sg4_8ykSOq3XFEsoNsYDuZ@mail.gmail.com","threadId":"25996","inReplyTo":"AANLkTikBdOLjzJxikXCwTs52RByfNZzKamK+F-JhY0mQ@mail.gmail.com","subject":"Re: StandardInput Not Continuing Process","fromName":"Chase Brammer","fromEmail":"cbrammer@gmail.com","sentAt":"2010-12-23T16:55:02Z","receivedAt":"2010-12-23T16:55:02Z","isPatch":false,"sender":{"key":"cbrammer@gmail.com","avatar":"https://gravatar.com/avatar/96536ec36bad2565256a6f6aaee25498608816ff1334a5dfefc404cf1cf2459e?d=mp&s=160"},"body":"Bump, any ideas?\n\nChase\n\n\nOn Wed, Dec 8, 2010 at 10:25 AM, Chase Brammer <cbrammer@gmail.com> wrote:\n>\n> I am try to directly interact with Git by using only stdin, stdout,\n> and stderr.  So\n> not going through a terminal at all, but calling Git directly.   I am\n> having an issue\n> with being able to continue a process that requires input.\n>\n> For example, doing a clone from a HTTPS server may require a username/password.\n> I writing the password as utf, and also tried just UTF byes (ie no\n> prepended 16-bit int)\n> but am unable to get the process to continue and start the clone process.\n>\n> Is there some signal, or trick to getting the process to continue?  I\n> thought that sending a\n> \"\\n\" would work, but that doesn't seem to be working either.\n>\n> Thanks for any help!\n>\n> Chase\n"},{"id":"158533","messageId":"345E4AAA-63E3-4949-8486-A636793DDBC8@silverinsanity.com","threadId":"25996","inReplyTo":"AANLkTikvrDWYT8h_MCESd9sg4_8ykSOq3XFEsoNsYDuZ@mail.gmail.com","subject":"Re: StandardInput Not Continuing Process","fromName":"Brian Gernhardt","fromEmail":"benji@silverinsanity.com","sentAt":"2010-12-23T17:18:15Z","receivedAt":"2010-12-23T17:18:15Z","isPatch":false,"sender":{"key":"benji@silverinsanity.com","avatar":"https://gravatar.com/avatar/e06c101dbc25c68114d859b4a9ec7cf8a2c52fd2b0270ef0eac0e2e63ff22311?d=mp&s=160"},"body":"\nOnOn Wed, Dec 8, 2010 at 10:25 AM, Chase Brammer <cbrammer@gmail.com> wrote:\n> \n> I am try to directly interact with Git by using only stdin, stdout,\n> and stderr.  So\n> not going through a terminal at all, but calling Git directly.   I am\n> having an issue\n> with being able to continue a process that requires input.\n> \n> For example, doing a clone from a HTTPS server may require a username/password.\n> I writing the password as utf, and also tried just UTF byes (ie no\n> prepended 16-bit int)\n> but am unable to get the process to continue and start the clone process.\n> \n> Is there some signal, or trick to getting the process to continue?  I\n> thought that sending a\n> \"\\n\" would work, but that doesn't seem to be working either.\n\nDepending on what language you're using and your pipe settings, you might need to issue an fflush(git_stdin).\n\n~~ Brian\n"},{"id":"158532","messageId":"7vbp4c2yph.fsf@alter.siamese.dyndns.org","threadId":"25996","inReplyTo":"AANLkTikvrDWYT8h_MCESd9sg4_8ykSOq3XFEsoNsYDuZ@mail.gmail.com","subject":"Re: StandardInput Not Continuing Process","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2010-12-23T17:20:10Z","receivedAt":"2010-12-23T17:20:10Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Certain things do want a real user sitting at the terminal (or GUI) even\nwhen the standard streams are connected elsewhere, and password input\nis one of the obvious things that would explicitly want to read from the\ntty.\n\nPerhaps driving whatever script you are writing via \"expect\" would work?\n"},{"id":"158568","messageId":"AANLkTi=2QV-pwDx1rVYVbG6zxK9mxmXQ6hMs2XvdzM0Y@mail.gmail.com","threadId":"25996","inReplyTo":"AANLkTikBdOLjzJxikXCwTs52RByfNZzKamK+F-JhY0mQ@mail.gmail.com","subject":"Re: StandardInput Not Continuing Process","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2010-12-25T02:45:45Z","receivedAt":"2010-12-25T02:45:45Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"On Thu, Dec 9, 2010 at 1:25 AM, Chase Brammer <cbrammer@gmail.com> wrote:\n> For example, doing a clone from a HTTPS server may require a username/password.\n> I writing the password as utf, and also tried just UTF byes (ie no\n> prepended 16-bit int)\n> but am unable to get the process to continue and start the clone process.\n\nTry putting the username and password in ~/.netrc, or in the url with\nhttps://user:pwd@foo.com/ - that way, you can skip the \"input process\"\naltogether.\n\n-- \nCheers,\nRay Chuan\n"}]}