Serious Privileges Problem: Please Help

Scott David Daniels Scott.Daniels at Acm.Org
Tue Nov 10 10:08:03 EST 2009


Dave Angel wrote:
> Victor Subervi wrote:
>> On Mon, Nov 9, 2009 at 2:30 PM, Victor Subervi 
>> <victorsubervi at gmail.com>wrote:
>>> On Mon, Nov 9, 2009 at 2:27 PM, Rami Chowdhury 
>>> <rami.chowdhury at gmail.com>wrote:
>>> <snip>
>>>
>>> Hold everything. Apparently line-endings got mangled. What I don't
...
>>  
> What I've diagnosed as happening when a python script with Windows 
> line-ending was posted on my server's cgi environment:
> 
> The actual error seemed to be a failure to find the python interpreter, 
> since some Unix shells take the shebang line to include the \r character 
> that preceded the newline.   Seems to me they could be more tolerant, 
> since I don't think control characters are likely in the interpreter 
> file name.

You could work around this by creating a symlink (or even hard link to
the python executable named "python\r"

--Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-list mailing list