This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cannot execute binary file
- From: Gerry Reno <greno at verizon dot net>
- To: cygwin at cygwin dot com
- Date: Mon, 16 Dec 2013 19:32:07 -0500
- Subject: Re: cannot execute binary file
- Authentication-results: sourceware.org; auth=none
- References: <52AF84E3 dot 7070109 at verizon dot net> <52AF9A80 dot 5010605 at gmail dot com>
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.
Thanks for the suggestion though.
--
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