delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/22/08:09:21

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <12273008 DOT post AT talk DOT nabble DOT com>
Subject: RE: executing C program in cygwin
Date: Wed, 22 Aug 2007 13:07:47 +0100
Message-ID: <00b501c7e4b5$0e0a0660$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <12273008.post@talk.nabble.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On 22 August 2007 12:48, Enna wrote:

> I have the following problem: I would like to execute a C program from the
> cygwin console. This program is supposed to get its input from another file,
> so what I type into the cygwin console is
> 
> /path to the program/programname<filename
> 
> This worked fine yesterday, however today all i get is the message "bash:
> filename: no such file or directory". I must admit that I shifted the
> directory containing all that stuff around a little bit, but the file is
> still in that directory, so I have no idea what the problem is. Please help!


  Well, bash hasn't changed since yesterday, so it's pretty hard to think of any
other cause than that you did, in fact, mess up somehow when you moved stuff
around.  The problem with claiming something generic like 

> so what I type into the cygwin console is
> 
> /path to the program/programname<filename

is that none of us know if that's actually what you did, or if you typo'd it, or
anything else like that, so if one of your assumptions is wrong, nobody can
double-check it for you.

  That's why you should have shown us actual cut-and-pasted output from your
shell window, showing you trying to execute the program, and showing you running
"ls -l" on the same path.  Please show us that, and we'll be able to take a look
at the perms at the same time as double-checking that the file is actually where
it's supposed to be. 




    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019