how to run python script from Unix Shell?
Bruce Wolk
bawolk at ucdavis.edu
Thu Sep 6 23:01:58 EDT 2001
Try
./programname
The current directory probably is not in your path
David 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.
>
> 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