Files will not execute from the command line unless they are "set to execute" and you have permissions to do so.
Do an ll and examine the output, you get something that looks like this:
-rw-r----- 1 cnjohnso informix 16861 Feb 18 2002 smit.log
Please notice the -rw-r-----
Reading from left to right, grouping by three places and ignoring the first dash, we see that for the file "smit.log", the owner has read/write privs, but not execute privs; group has read, but no write or execute privs, and all others have no privs at all.
If a file has execute permissions, then you will see an "x" in the relevant position: -rwxr-x--x
In this case everybody has execute privs.
So, read the man page about chmod, and you can fix your problem.
Cheers--
Charles
|