From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18651 invoked by alias); 25 Sep 2003 07:44:34 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 18644 invoked from network); 25 Sep 2003 07:44:33 -0000 Received: from unknown (HELO cygbert.vinschen.de) (80.132.97.4) by sources.redhat.com with SMTP; 25 Sep 2003 07:44:33 -0000 Received: by cygbert.vinschen.de (Postfix, from userid 500) id E2E6758319; Thu, 25 Sep 2003 09:44:32 +0200 (CEST) Date: Thu, 25 Sep 2003 09:21:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Error while running a .exe file in bash Message-ID: <20030925074432.GT9981@cygbert.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20030925071759.89683.qmail@web9807.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030925071759.89683.qmail@web9807.mail.yahoo.com> User-Agent: Mutt/1.4.1i X-SW-Source: 2003-09/txt/msg01589.txt.bz2 On Thu, Sep 25, 2003 at 12:17:59AM -0700, Kishen Bahudhanam wrote: > I see a couple of messages on this topic, but couldn't > figure out what to do. So sending the question again: > > I compiled my code using gcc, and created a .exe file. > However, when I try to execute it, I get the following > error: > MZ?: command not found. > However, I can open a 'cmd' window, and run the .exe. > > I am under Win2000. Here is the .exe's attributes, and > the output when I run the exe. > > -rwxr-xr-x 1 jgalt mkpasswd 455026 Sep 25 12:29 > tx.exe* > /c/Model>. tx.exe > bash: MZ?: command not found Try ./tx.exe Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin@cygwin.com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/