Python and Red Hat Linux 6
Spud
spud200 at earthlink.net
Mon Jul 26 19:37:37 EDT 1999
More information about the Python-list mailing list
Mon Jul 26 19:37:37 EDT 1999
- Previous message (by thread): Python and Red Hat Linux 6
- Next message (by thread): Python and Red Hat Linux 6
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Yeah, using #!/bin/env/python should help, but Red Hat should support pound-bang (#!) anyway. You might want to check in with tech support. Brian Pedersen <brian.pedersen at mail.danbbs.dk> wrote in message news:379CD5C2.5BA096A2 at mail.danbbs.dk... > Rob 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. Does Linux support the '#!' > > notation in the file header, or do I always have to run the scripts by > > explicitly typing in 'perl' or 'python' before the script name? > > ~Rob~ > > Try > > !#/usr/bin/env python > > instead (don't ask me why, i read it in a FAQ somewhere :-) > > -- > Brian Pedersen, M.Sc.E.E. /\ > DSP Software and Algorithm Development .~. / \ .~. > URL: http://www.danbbs.dk/~kibria/brian/ ~ ~ > NOTE: New e-mail address !
- Previous message (by thread): Python and Red Hat Linux 6
- Next message (by thread): Python and Red Hat Linux 6
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list