how to run python script from Unix Shell?

Grant Edwards grante at visi.com
Thu Sep 6 22:58:08 EDT 2001


On 6 Sep 2001 19:18:16 -0700, David <davidnet800 at yahoo.com> wrote:
>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.

Try entering "./Script" at the bash prompt.

Your current directory is probably not in your search path (for
security reasons), so you have to tell bash explicitly that the
file is in the current directory by prefixing its name with
"./".

-- 
Grant Edwards                   grante             Yow!  Bo Derek ruined
                                  at               my life!
                               visi.com            



More information about the Python-list mailing list