[Tutor] Re: /usr/bin/env problem
Shantanu Mahajan
python@dhumketu.cjb.net
Sun Jun 8 01:26:12 2003
+-- Neil Schemenauer [python-tutor] [03-06-03 16:21 -0700]:
| Neil Hodge wrote:
| > I have two python scripts in the same directory, with the same
| > permissions, both with the standard line:
| >
| > #!/usr/bin/env python
| >
| > at the top. One runs, one doesn't. One bombs with the error:
| >
| > /usr/bin/env: No such file or directory
|
| My only theory is that there are "weird" characters in the first one
| (e.g. a DOS line ending). You could check by running:
|
| $ head -1 script.py | od -c
or maybe
$ col -bx < script.py > script.py.new && mv script.py.new script.my
|
| Try deleting the line and adding it back by hand. HTH,
|
| Neil
Regards,
Shantanu
--
Want to know how many words, lines, or bytes are contained in a file? Type
"wc filename".
-- Dru <genesis@istar.ca>