View Single Post
  #1 (permalink)  
Old 30-Jun-2009, 11:56
david71's Avatar
david71 david71 is offline
Student Penguin
 
Join Date: Jun 2009
Location: London, UK.
Posts: 84
david71 hasn't been rated much yet
Default Relative pathname for executable file

Hi,

I'm teaching myself Fortran and I compiled my first program. When I went to run the file at the command line I changed to the directory of the file and entered the filename and nothing happened.
After searching a bit I found I had to enter
Code:
./<filename>
and not just
Code:
<filename>
My question is, what is the significance of using ./ as I thought it just meant the path was relative?
Is just entering the filename of an executable file not valid, even though you're in the directory of the target file?

Thanks.
__________________
x86_64 openSUSE 11.1 (2.6.27.29-0.1-default) Gnome 2.24.1
Reply With Quote