[Zope] newbie CGI question

Eric Walstad Eric Walstad" <ewalstad@energywright.com
Tue, 21 Mar 2000 15:21:40 -0800


Hung Jung Lu ,
Along these same lines, I have a C++ CGI App that I would like to call from
zope.  It requires a couple of parameters.  The app can either return HTML
or I can have it save the output to a text file.  Ultimately, the text will
need to be displayed to the user from Zope.
Q1.  How does one call a C++ CGI program from Zope?
Q2.  How do you supply the C++ CGI program with "command line" parameters
from Zope when making the call?

Thanks,

Eric.
----- Original Message -----
From: Hung Jung Lu <hungjunglu@hotmail.com>
To: <jlt29707@sci.tamucc.edu>; <zope@zope.org>
Sent: Tuesday, March 21, 2000 3:09 PM
Subject: Re: [Zope] newbie CGI question


> jessica lee tishmack <jlt2970-@sci.tamucc.edu> wrote:
> >what about CGI scripts?  Does Zope support them?  Can I use the Zserver
> >with these scripts or should I use the other server (with Apache)?
> >...
> >if this is worth switching, especially if I am going to continue to use
> >perl/cgi (if that's even possible)...any suggestions out there?
>
> You will have to use Apache + mod_perl + mod_rewrite + Zope.
> This way, you send the CGI requests to the cgi-bin, and the
> rest requests to Zope. The details could be somewhat involved. :(
>
> (see the following quote in
> http://www.apache.org/docs/mod/mod_rewrite.html
>
> `` Despite the tons of examples and docs, mod_rewrite is
> voodoo. Damned cool voodoo, but still voodoo. ''
> -- Brian Moore
> bem@news.cmc.net
> )
>
> But it is definitely worth it. And I would guess many people
> out there actually use this configuration.
>
> I guess it is possible for someone to write some Zope product
> for Perl (a la mod_perl), but it would be major engineering to
> be fully compatible with Perl. If you don't mind re-launching
> the Perl interpreter every single time (I know, it's primitive),
> it's easy to execute the perl command from a Zope external method.
>
> For now, the best bet is probably Apache + mod_perl + mod_rewrite +
> Zope.
>
> Hung Jung
>
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>