how to run python script from Unix Shell?
Joal Heagney
s713221 at student.gu.edu.au
Fri Sep 7 09:08:47 EDT 2001
Peter Hansen wrote:
> The other problem could be that your python is not
> really in /usr/bin (type "which python" to be sure)
> but then your error message would say:
>
> bash: ./test.py: No such file or directory
>
> (This all on Red Hat release 7.1.)
If this is so, you may want to try the magic hack
#!/usr/bin/env python
--
Joal Heagney is: _____ _____
/\ _ __ __ _ | | _ ___ |
/__\|\ || ||__ |\ || |___|/_\|___] |
/ \ \_||__ ||___| \_|! | | \ \ !
More information about the Python-list
mailing list