LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Problem with exe files (https://www.linuxquestions.org/questions/mandriva-30/problem-with-exe-files-108851/)

999113H 10-26-2003 06:47 PM

Problem with exe files
 
I am a newb so sorry if im not posting enough info.
I installed mandrake 9.2
After writing a program in c I compiled it with gcc. /-o foo foo.c/
in the shell I type the program name and it doesnt run.
it says not a commard or something similar
The exe file has a star after it when i list the directory.

I downloaded sample c exe scripts and they also have stars next to them and do not run.

I have no Idea why its not working.

please help

wapcaplet 10-26-2003 08:38 PM

You will probably need to run the program by explicitly giving the path name. If you're in the same directory as the program 'foo', then type:

./foo

Or you can give the full path, like /home/yourusername/foo or whatever it is. This is because your shell doesn't normally look under /home for executable files.


All times are GMT -5. The time now is 02:57 AM.