Shell: run script
Gandalf
gandalf at geochemsource.com
Wed Nov 26 14:25:26 EST 2003
>
>
>
>
>>>>python filename
>>>>python filename.py
>>>>run filename
>>>>run filename.py
>>>>/run filename
>>>>/run filename.py
>>>>
>>>>
From your separator, I guess you are using UNIX.
Please ensure that the first line is something like this:
#!/usr/bin/env python
Very important: you should not have CR+LF at the end of the line, only LF.
Otherwise the shell will think that the CR is the part of the program and
it will be searching for an interpreter with this name:
'python' + CR
:-/
L 1.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20031126/37d31ba0/attachment.html>
More information about the Python-list
mailing list