www.delorie.com/archives/browse.cgi | search |
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 <robert AT glassdoor DOT com> |
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: | <loom.20100106T220554-749@post.gmane.org> |
References: | <4B421BD3 DOT 4040005 AT gmx DOT net> |
Mime-Version: | 1.0 |
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: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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 <kjathome <at> 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |