Greg Lindstrom writes:

> I am programming Python (2.4.1) scripts to run on our Gentoo boxes and
> am having a bit of trouble I was hoping you could help me with.  My
> file, hello.py looks like this:
>
> #!/usr/bin/python
> print 'hello, python'
>
> I add execute permission to the file and try to run it as follows:
>
> myprompt $ ./hello.py
>
> and get
>
> -bash: ./hello.py: /usr/bin/env: bad interpreter: Permission denied

is is possible that you saved the text file in DOS format, with CR-LF 
endings instead of LF only?

If "od -t x2 hello.py" shows 0a0d sequences, this is the case. You could 
use dos2unix to convert.

Just guessing, but I sometimes got similar errors in such cases.

        Alex
-- 
[EMAIL PROTECTED] mailing list

Reply via email to