This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: B20: problems running compiled programs


Matt Elliott wrote:
> 
> BASH.EXE-2.02$ ls -l
> -rwxr-xr-x   1 500      everyone   462916 May  1 22:57 a.exe
> BASH.EXE-2.02$ a
> BASH.EXE: a: command not found
> 
> Path:	/CYGNUS/CYGWIN~1/H-I586~1/BIN
> 	/WINDOWS
> 	/WINDOWS
> 	/WINDOWS/COMMAND

The current directory is not in your path. Use "./a" instead of "a".
In a few years, after you become accustomed to typing "./", then
add "." at the end of your path.

> TEMP = `C:\windows\TEMP'
> TERM = `cygwin'
> TMP = `c:\windows\TEMP'

Do not use "smart quotes" (they may have been added by your mail
client). Some programs will look for a "TMPDIR" variable. You may
want to add that in addition to "TMP" and "TEMP".

-glenn

-- 
 )      Glenn Spell <glenn@gs.fay.nc.us>      )   _       _____
 )   Fayetteville, North Carolina, C. S. A.   )_ (__\____o /_/_ |
 )  _  _  _  _  _  _  _  _  _  _  _  _  _  _  )   >-----._/_/__]>
 )- blue skies - happy trails - sweet dreams -)             `0  |

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com