Make sure it has executable permissions. As root type ls -l
This will give an output something like this:
-rw-rw-r-- 1 anthony anthony 305057 May 18 15:48 filename
Its the first part you want to look at. The dashes and letters. the r stands for read, the w stand for write, and the x that isnt there means you can execute, or run it.
Because the file isnt executable, type as someone sugested earlier:
chmod a+x filename
this will alter the permissions of the file, to be executable, for all.Now ls-l should display something like this:
-rwxrwxr-x 1 anthony anthony 305057 May 18 15:48 filename
Notice the extra x's in the first part, meaning it is executable. Now to run it, type ./filename
This will run a file in the current directory. That is the directory you are currently in. Hope this helps. If not let us know.