Errin when executing a cgi script that sets a cookie in the browser

Chris Angelico rosuav at gmail.com
Sat Jun 8 12:03:57 EDT 2013


On Sun, Jun 9, 2013 at 1:36 AM, Νικόλαος Κούρας <nikos.gr33k at gmail.com> wrote:
> Τη Σάββατο, 8 Ιουνίου 2013 10:01:51 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε:
>> On Sat, Jun 8, 2013 at 4:53 PM, Νικόλαος Κούρας <nikos.gr33k at gmail.com> wrote:
>>
>> > Τη Παρασκευή, 7 Ιουνίου 2013 11:47:58 μ.μ. UTC+3, ο χρήστης MRAB έγραψε:
>>
>> >> On 07/06/2013 19:24, Νικόλαος Κούρας wrote:
>>
>> \>> > Τη Παρασκευή, 7 Ιουνίου 2013 5:32:09 μ.μ. UTC+3, ο χρήστης MRAB έγραψε:
>>
>> >> >> It's looking for '/home/nikos/public_html/cgi-bin/koukos.py'.
>>
>> >> >> Have a look in '/home/nikos/public_html/cgi-bin'. Is 'koukos.py' in
>>
>> >> >> there?
>>
>> >> > Yes it is.
>>
>> >> > nikos at superhost.gr [~/www/cgi-bin]# ls -l
>>
>> >> > -rwxr-xr-x 1 nikos nikos   1160 Jun  6 06:27 koukos.py*
>>
>> >> The prompt says "~/www/cgi-bin".
>>
>> >> Is that the same as "/home/nikos/public_html/cgi-bin"?
>>
>> > Good day MRAB, yes '~/www' its a symlink to '~/public_html'
>>
>>
>>
>> More basics. When someone asks you to check something, check exactly
>>
>> that. It really does not help to check something unrelated. If you'd
>>
>> shown in your prompt ~/public_html/cgi-bin rather than your symlink of
>>
>> www, there would have been less confusion; putting the full path in as
>>
>> a parameter would eliminate all trouble. By using the symlink, you
>>
>> demand that we understand or assume something about your system, and
>>
>> that's unnecessary.
>
> Well, www as symlink to public_html is always a symlink to any system i have used so its something defaulted.

It's most certainly not the default, it's definitely not universal,
and that has nothing to do with what I said. Use the exact same path,
it reduces confusion. Also, I think it's time to mention again: Get
yourself off Google Groups, or start trimming out the stupid double
spacing! It's getting extremely annoying.

ChrisA



More information about the Python-list mailing list