I recently installed Mandrake 10.1 and from my experience I should be able to execute compiled c files from a shell by just typing ./program_name but this doesn't work. The error I get is command not found. I set the permissions to 777 on the directory that contains the file and the file that I was trying to execute. I can run the compiled c file when I copy it to the /bin/ or /usr/bin/ folders but not in other folders. I've also tried running the file as root and it still doesn't work. Does anyone know how I can get files to execute from any folder.
Thanks in advance.