-   Mandriva (
-   -   executing file (

dontknowshit 06-10-2004 08:11 PM

executing file
I am just new, i am using mandrake 10, and have started writing some c++ programs. My files compile fine with no errors, however when i try executing the program ive written it just says bash: exe: command not found. I am trying to use a.out to run my file, please tell me how to run my file. Thanks Heaps Beginner

michaelk 06-10-2004 08:24 PM

Unlike windows, bash only searches the PATH environment not the current working directory for a command. You can either use the entire path or ./ or add the current working directory to the PATH:


./ is a short for current working directory i.e.

To add current working directory to your path:

dontknowshit 06-10-2004 08:28 PM

Thanks Michealk
I appreciate your help greatly.

All times are GMT -5. The time now is 06:23 AM.