X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: RH Subject: Re: Cygwin 1.7.1-1: problem with pipe to windows programs Date: Wed, 6 Jan 2010 21:08:54 +0000 (UTC) Lines: 39 Message-ID: References: <4B421BD3 DOT 4040005 AT gmx DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com KJ gmx.net> writes: > > Hi, > > within a cygwin shell I used to pipe some data into a windows program > (sqlcmd.exe) which used to work pretty well. Since upgrading to version > 1.7 I get the following error: > $ echo "select @@version" | sqlcmd > Sqlcmd: Error: Internal error at ReadTextLine (Reason: Unbekannter Fehler). > > Is there any option to get the pipe working again? > > Thanks > KJ > > Any update on this? I am having the same problem, and have had to go back to Cygwin 1.5. A very simple command like this does not work: echo "select * from mytable" | unix2dos | sqlcmd -S server -U sa -P mypassword -d myDatabase As you can see I'm trying to force the data hitting sqlcmd to be in dos mode but somehow I suspect it is getting put into linux-mode line endings before hitting sqlcmd. The error response is "Error: Internal error at ReadTextLine (Reason: Not Specified)" This command from an NT command shell works: echo "select * from mytable" | sqlcmd -S server -U sa -P mypassword -d myDatabase My mount in /etc/fstab is text, I tried binary, that seems to not help. any ideas? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple