LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   executing file (https://www.linuxquestions.org/questions/mandriva-30/executing-file-192118/)

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:

/path/to/executable

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

To add current working directory to your path:
http://www.linuxquestions.org/questi...bash_profile+.

dontknowshit 06-10-2004 08:28 PM

Thanks
 
Thanks Michealk
I appreciate your help greatly.


All times are GMT -5. The time now is 07:56 AM.