X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_YG X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 21 Jun 2012 00:15:24 +0800 Message-ID: Subject: Re: Ask for help on running interactive cmd in Mintty! From: Tian You To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q5KGFsH0017125 Here is also some library info: $ cygcheck.exe /bin/ssh.exe C:\MyApp\bin\ssh.exe C:\MyApp\bin\cygcrypto-0.9.8.dll C:\MyApp\bin\cygwin1.dll C:\WINDOWS\system32\KERNEL32.dll C:\WINDOWS\system32\ntdll.dll C:\MyApp\bin\cygz.dll C:\MyApp\bin\cyggcc_s-1.dll C:\MyApp\bin\cygssp-0.dll $ ldd.exe /bin/ssh.exe ntdll.dll => /cygdrive/c/WINDOWS/system32/ntdll.dll (0x7c900000) kernel32.dll => /cygdrive/c/WINDOWS/system32/kernel32.dll (0x7c800000) cygcrypto-0.9.8.dll => /usr/bin/cygcrypto-0.9.8.dll (0x6bc40000) cygwin1.dll => /usr/bin/cygwin1.dll (0x61000000) cygz.dll => /usr/bin/cygz.dll (0x694c0000) cyggcc_s-1.dll => /usr/bin/cyggcc_s-1.dll (0x6bf40000) cygssp-0.dll => /usr/bin/cygssp-0.dll (0x67280000) On Thu, Jun 21, 2012 at 12:04 AM, Tian You wrote: > Here is the front part of the output, but I do not understand it very well. > Could you find any clue from it? > > $ cygcheck.exe -v /bin/ssh.exe > C:\MyApp\bin\ssh.exe - os=4.0 img=1.0 sys=4.0 > Warning: C:\MyApp\bin\cygcrypto-0.9.8.dll hides > C:\MyApp_old\bin\cygcrypto-0.9.8.dll >  C:\MyApp\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0 >    "cygcrypto-0.9.8.dll" v0.0 ts=2012/5/11 12:25 > Warning: C:\MyApp\bin\cygwin1.dll hides C:\MyApp_old\bin\cygwin1.dll >    C:\MyApp\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 >      "cygwin1.dll" v0.0 ts=2012/5/9 9:25 >      C:\WINDOWS\system32\KERNEL32.dll - os=5.1 img=5.1 sys=4.0 >        "KERNEL32.dll" v0.0 ts=2008/4/13 20:15 >        C:\WINDOWS\system32\ntdll.dll - os=5.1 img=5.1 sys=4.10 >          "ntdll.dll" v0.0 ts=2010/12/9 13:38 >      C:\WINDOWS\system32\ntdll.dll (already done) > Warning: C:\MyApp\bin\cygz.dll hides C:\MyApp_old\bin\cygz.dll >    C:\MyApp\bin\cygz.dll - os=4.0 img=1.0 sys=4.0 >      "cygz.dll" v0.0 ts=2012/5/13 5:11 > Warning: C:\MyApp\bin\cygwin1.dll hides C:\MyApp_old\bin\cygwin1.dll >      C:\MyApp\bin\cygwin1.dll (already done) > Warning: C:\MyApp\bin\cyggcc_s-1.dll hides C:\MyApp_old\bin\cyggcc_s-1.dll >      C:\MyApp\bin\cyggcc_s-1.dll - os=4.0 img=1.0 sys=4.0 >        "cyggcc_s-1.dll" v0.0 ts=2011/10/23 14:15 > Warning: C:\MyApp\bin\cygwin1.dll hides C:\MyApp_old\bin\cygwin1.dll >        C:\MyApp\bin\cygwin1.dll (already done) >        C:\WINDOWS\system32\KERNEL32.dll (already done) >      C:\WINDOWS\system32\KERNEL32.dll (already done) > Warning: C:\MyApp\bin\cyggcc_s-1.dll hides C:\MyApp_old\bin\cyggcc_s-1.dll >    C:\MyApp\bin\cyggcc_s-1.dll (already done) >    C:\WINDOWS\system32\KERNEL32.dll (already done) > Warning: C:\MyApp\bin\cygwin1.dll hides C:\MyApp_old\bin\cygwin1.dll >  C:\MyApp\bin\cygwin1.dll (already done) > Warning: C:\MyApp\bin\cygz.dll hides C:\MyApp_old\bin\cygz.dll >  C:\MyApp\bin\cygz.dll (already done) > Warning: C:\MyApp\bin\cyggcc_s-1.dll hides C:\MyApp_old\bin\cyggcc_s-1.dll >  C:\MyApp\bin\cyggcc_s-1.dll (already done) > Warning: C:\MyApp\bin\cygssp-0.dll hides C:\MyApp_old\bin\cygssp-0.dll >  C:\MyApp\bin\cygssp-0.dll - os=4.0 img=1.0 sys=4.0 >    "cygssp-0.dll" v0.0 ts=2011/10/23 14:33 > Warning: C:\MyApp\bin\cygwin1.dll hides C:\MyApp_old\bin\cygwin1.dll >    C:\MyApp\bin\cygwin1.dll (already done) >    C:\WINDOWS\system32\KERNEL32.dll (already done) >  C:\WINDOWS\system32\KERNEL32.dll (already done) > Warning: C:\MyApp\bin\cygssp-0.dll hides C:\MyApp_old\bin\cygssp-0.dll >  C:\MyApp\bin\cygssp-0.dll (already done) > > > On Wed, Jun 20, 2012 at 11:44 PM, Earnie Boyd > wrote: >> http://cygwin.com/acronyms/#TOFU >> >> On Wed, Jun 20, 2012 at 11:07 AM, Tian You wrote: >>> I run the perl script in mintty. >>> If I run it in a Windows cmd.exe terminal, that works normally. >>> The ssh.exe is compiled in the Cygwin by myself. >>> >> >> This points even more to what I suspect, that you are running an >> ssh.exe that is "native" MSVCRT runtime instead of Cygwin runtime. >> What does ``cygcheck -v ssh'' tell you? >> >> -- >> Earnie >> -- https://sites.google.com/site/earnieboyd >> >> -- >> 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 >> -- 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