Coming from Perl

Tim Golden mail at timgolden.me.uk
Thu Sep 13 17:52:41 CEST 2007


Amer Neely wrote:
> Richie Hindle wrote:
>>> [Amer]
>>> #!/usr/bin/python
>>> [...] On my home PC [...]
>>> [Thu Sep 13 04:16:03 2007] [error] [client 0.0.0.0] (OS 2)The system 
>>> cannot find the file specified.
>> That's because on your home PC Python is somewhere like
>> C:\Python25\python.exe, not /usr/bin/python.
>>
>> Are you sure /usr/bin/python is correct for your hosting environment?
>>
> 
> It's my understanding that the Windows shell doesn't pay much attention 
> to the shebang line if the file type is associated with the proper 
> application.
> 
> But I tried your suggestion and got the same results.

The Windows shell doesn't, but Apache does. (Haven't followed
this thread closely, but I seem to remember it has to do with
running CGI scripts).

TJG



More information about the Python-list mailing list