Python and Red Hat Linux 6

Fredrik Lundh fredrik at pythonware.com
Mon Jul 26 17:59:29 EDT 1999


Rob <vaton at postoffice.pacbell.net> wrote:
> When programming in Perl or Python, I am using a header like the
> following on an executable file to cause the shell (bash or csh) to run
> the scripts as Perl/Python files:
> #!/usr/bin/perl   for Perl   and #!/usr/bin/python   for Python. I've
> checked and the compilers are located in the appropriate directories. I
> keep getting this when I run scripts:
> bash: <script name>: command not found.

did you try:

$ ./scriptname

if this works, check your PATH settings (having "."
in the path is usually considered a bad idea, but it's
your computer ;-)

</F>





More information about the Python-list mailing list