how to run python script from Unix Shell?

David davidnet800 at yahoo.com
Fri Sep 7 04:18:16 CEST 2001


Hi there,

Can you help to advise how to run python script from Unix Shell?
What I am doing is:
1)chmod +x  script name
2)put #!/usr/bin/python   at first line
3)when I type the script name under Shell,
the message is:
bash: Script name command not found.

Actually, it works if I type:
python "script name"

But the problem is I want run it by typing "script name"

Thanks for your help.



More information about the Python-list mailing list