[Tutor] Shebang problem
Rick Pasotto
rick@niof.net
Tue Jul 1 14:23:09 2003
On Tue, Jul 01, 2003 at 06:18:55PM +0100, Rick Thomas wrote:
>
> The exact error message I get is 'bash: foo.py: command not found'. When I
> type in 'which python' at a terminal I get /usr/bin/python which is the
> correct path for my scripts. I've tried changing the shebang line to
> #!/usr/bin/env python but I got the same error message as above. I know all
> my scripts are executable as I've always used the 'chmod' u+x command after
> creating a script file.
>
> further advice would be much appriciated.
Did M$ get involved? I've encountered that error message when the lines
ended in '\r\n' instead of just '\n'.
--
"Of all the sexual aberrations, perhaps the most peculiar is chastity."
-- Remy de Gourmont
Rick Pasotto rick@niof.net http://www.niof.net