delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RP_MATCHES_RCVD,TW_BJ |
X-Spam-Check-By: | sourceware.org |
X-DKIM: | Sendmail DKIM Filter v2.8.3 mux1.uit.no pA48ofKw008215 |
From: | =?utf-8?B?RWR2YXJkc2VuIEvDpXJl?= <kare DOT edvardsen AT uit DOT no> |
To: | "moss AT cs DOT umass DOT edu" <moss AT cs DOT umass DOT edu> |
CC: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
Subject: | Re: Problem with execution of binary file |
Date: | Fri, 4 Nov 2011 08:50:41 +0000 |
Message-ID: | <1320396611.5480.196.camel@kare-desktop> |
References: | <1320322806 DOT 5480 DOT 161 DOT camel AT kare-desktop> <4EB30E21 DOT 3090707 AT cs DOT umass DOT edu> |
In-Reply-To: | <4EB30E21.3090707@cs.umass.edu> |
MIME-Version: | 1.0 |
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 |
X-MIME-Autoconverted: | from base64 to 8bit by delorie.com id pA48p527002269 |
> On 11/3/2011 4:56 PM, Eliot Moss wrote: > Ok, so here's one thing about bash: to get it to > run an *executable* (as opposed to a *script*), > you need to say "bash -c FLEXPART_GFORTRAN". > You might try strace on that. In addition to the > objdump suggestion. > > I have a moment to expand on this a little. The > 80-byte read we saw was bash looking at the > beginning of what it that was supposed to be a > script (not a binary) and seeing if it really > appeared to be a script. I did not look like a > script, so bash gave up. (It checks whether the > first line is all printable characters or white > space.) > > Best -- Eliot Moss > Hmm, wonder why bash would interpret it as a script. Anyway, I will get back to you later with output from strace and objdump. Cheers, kåre
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |