Coming from Perl

Amer Neely perl4hire at softouch.on.ca
Thu Sep 13 12:10:46 EDT 2007


Tim Golden wrote:
> 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.
> 

See my reply to this post - I had a typo in the shebang line and it now 
works on my home PC.

> 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).

This seems to indicate that maybe my host needs to configure Apache to 
run python scripts? But I didn't need to do anything with mine.

-- 
Amer Neely
w: www.webmechanic.softouch.on.ca/
Perl | MySQL programming for all data entry forms.
"Others make web sites. We make web sites work!"



More information about the Python-list mailing list