[Zope] pcgi error message.

Andreas Kostyrka andreas@mtg.co.at
Fri, 20 Aug 1999 15:26:32 +0200 (CEST)


On Fri, 20 Aug 1999, Jeff Bauer wrote:

Well, I've learned something new about python, pcgi and the world ;)

Question: Any arguments why you are doing this:

int pcgiStartProc(pcgiResource *r)
{   
    pid_t pid;
    char  *p = NULL;
    int   i = 0;
    UNION_SEMUN arg;
    arg.val=0;

    if ((p=strrchr(r->sw_exe, PATHSEP))==NULL)
    {   
        p = r->sw_exe;
    }
    else
    {   
        p++;
    }

I've discovered my problem being the following:
[pid  1792] execve("/opt/mtg/bin/python", ["python",
"/opt/mtg/Z/ZOPE-2.0.0b4/pcgi/pcg"...], [/* 36 vars */]) = 0

Which further down, lead the python in /opt/mtg to find /usr as it's
prefix.

Basically, I've got here a standard RH6.0 linux system, and being nice,
I this time decided to let the standard 1.5.1 python be, and compiled my
own 1.5.2 in a seperate path.

Well, for most things the standard python that comes with tkinter, etc.
is the right one, so /usr/bin/python is in the PATH.

Now python is execed without the pathinfo, so it does have to search for
itself along the PATH :(

Andreas
--
Andreas Kostyrka                     | andreas@mtg.co.at
phone: +43/1/7070750                 | phone: +43/676/4091256   
MTG Handelsges.m.b.H.                | fax:   +43/1/7065299
Raiffeisenstr. 16/9                  | 2320 Zwoelfaxing AUSTRIA