Hi All, have a question
James Henderson
james at logicalprogression.net
Fri Feb 13 10:48:27 EST 2004
On Thursday 12 February 2004 5:15 pm, Paul Metzger wrote:
> > If you type "python" in the command line, it opens the interpreter?
> >
> > If yes, you can put "#!/usr/bin/env python" in the first line
> > of the script.
> >
> > And remember, in either case, the second line *must* be blank.
> >
> > PD: The "subject" field in the mail is to write the subject
> > of the mail, ;)
>
> That worked, now may I ask what the /env does?
It looks for Python in your path and then runs it.
> And what difference it makes
> to it, since it works without it on 2 servers, and apparently has to have
> it on one?
Evidently two of your servers have the Python interpreter in /usr/bin and the
other has it somewhere else. The point of using env is that you cannot
guarantee where Python will be installed.
James
--
James Henderson, Logical Progression Ltd.
http://www.logicalprogression.net/
http://sourceforge.net/projects/mailmanager/
More information about the Python-list
mailing list