[GRASS-user] Newbie, running python on Mac, error on execl
Randy Bradley
Randy.Bradley at ars.usda.gov
Tue Apr 6 16:18:02 EDT 2010
The first thing to check would be the file permission bits on the file
"hi.py" to be sure the execute bit is set. From your command line, just
type "ls -al hi.py". The first 10 characters from the output should show
you what bits are set and you are looking for an "x" in the fourth
character. For example:
-rwxr--r--
This means the owner has read,write,execute privileges while group and world
have read only. If you don't have execute privileges, simple type:
"chmod u+x hi.py"
Hope this helps. The same thing was driving me batty until this morning on
a Linux machine after splitting a script into two parts. The old one had
the execute bit set but the new one didn't.
Randy
On 04/06/10 12:31 PM, "AhmadKhaled" <vbkhp at yahoo.com> wrote:
>
> "python hi.py map=geology at PERMANENT"
>
> and I got the following error:
>
> "execl() failed: Permission denied"
>
More information about the grass-user
mailing list