From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24440 invoked by alias); 17 Dec 2013 02:39:54 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 24428 invoked by uid 89); 17 Dec 2013 02:39:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: vms173017pub.verizon.net Received: from vms173017pub.verizon.net (HELO vms173017pub.verizon.net) (206.46.173.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 17 Dec 2013 02:39:52 +0000 Received: from [192.168.1.231] ([unknown] [74.104.179.122]) by vms173017.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0MXX00K2UJE1A160@vms173017.mailsrvcs.net> for cygwin@cygwin.com; Mon, 16 Dec 2013 20:39:42 -0600 (CST) Message-id: <52AFB969.6040501@cygwin.com> Date: Tue, 17 Dec 2013 02:39:00 -0000 From: "Larry Hall (Cygwin)" Reply-to: cygwin@cygwin.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-version: 1.0 To: cygwin@cygwin.com Subject: Re: cannot execute binary file References: <52AF84E3.7070109@verizon.net> <52AF9A80.5010605@gmail.com> <52AF9B87.2030906@verizon.net> In-reply-to: <52AF9B87.2030906@verizon.net> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-SW-Source: 2013-12/txt/msg00290.txt.bz2 On 12/16/2013 7:32 PM, Gerry Reno wrote: > On 12/16/2013 07:27 PM, Max Polk wrote: >> On 12/16/2013 5:55 PM, Gerry Reno wrote: >>> /usr/bin/ls: /usr/bin/ls: cannot execute binary file >>> /bin/bash: Exit 126 >>> >>> >>> This is the error that greets me when I try to execute a command in cygwin from a Windows Command Prompt like so: >>> >>> C:\cygwin\bin\mintty.exe -h always /bin/bash -l ls >>> >>> This was after installing a new version of Cygwin today. So I wiped it and installed it again and got the same error >>> again. >>> >>> This used to work because I've called my own scripts this way before. Is there some new way of doing this? >>> >> >> If you provide a "minus c" option, it will work: >> >> C:\cygwin\bin\mintty.exe -h always -e /bin/bash -l -c ls >> > > I just tried it with -c and all it gives you is a totally blank window. > > Tried a bunch of other commands using the -c and same thing. Just a blank window. In that case, there's something in your installation that isn't quite right. The above suggestion resolves the issue you described just fine for me. If you're still experiencing the problem when you use the '-c' flag and need to consult with the list further on this issue, I recommend following the problem reporting guidelines found at the link below with your next message: > Problem reports: http://cygwin.com/problems.html -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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