This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cygwin and executables


One possibility is that you don't have "." in your path.  This catches a
lot of new UNIX (and, hence, CYGWIN) users off guard, as DOS implicitly
searches the current directory when you type a command line.  bash (and
other shells) only search the directories that are in the PATH
environment variable, so if "." is not in the path, when you type
"my.exe", it won't find "./my.exe" and try to execute it.

Two ways to solve this problem are:
1) Type "./my.exe" (or "./my") when you want to run the "my" program
that is in the current directory.  (This is what I do)
2) Add "." to (the end of) your path.  Note that there are some well
know UNIX security issues with having "." in your path.

Good luck...
--wpd


Chris Faylor wrote:
> 
> Please check out the project web page for links to available information
> and ports:  http://cygwin.com/ .
> 
> If you don't see what you need there, then the cygwin mailing list is
> the best place to make observations or get questions answered.
> Information on the mailing list is available at the project web page.
> 
> For your convenience, I've reset the Reply-To: address to point to the
> cygwin mailing list.  I've also Cc'ed this reply there.
> 
> On Thu, Feb 01, 2001 at 03:18:26PM -0800, Gary Loffman wrote:
> >Chris,
> >
> >sorry to bug you.  I was wondering if you could tell me how I can run my
> >.exe files in cywin.  I compiled a few c files using gcc and get a bash:
> >my.exe: command not found.
> >
> >Any suggestions would be appreciated.
> >
> >Thanks,
> >Gary
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]