--On 8. Juni 2007 20:19:10 +0200 sergio diaz <kanetesdm@hotmail.com> wrote:
Hello,
I want to use cgi under zope. I saw a zope product called zcgi but I don't know how run this. I have added the product but now I don't know how to work with it.
Welcome in the stoneage. Running Zope behind Apache is supported through mod_proxy and using rewrite rules. CGI/FastCGI support is deprecated. DON'T use it. If you want to use it, give use three very good reason. -aj
--On 8. Juni 2007 20:48:49 +0200 sergio diaz <kanetesdm@hotmail.com> wrote:
Hello,
I want to use cgi because I have to do a Grid Portal. I want to use Zope for the web interface and then conect Zope with cgi for execute system command and call to binary programs.
Could I do it with mod_proxy? Can you recommend me any manual for configure mod_proxy with zope?
Since you have of course "The Zope Book" under your pillow you just have to look at its "virtual hosting" chapter (the magic search terms are quoted). -aj
If what you mean is you want to be able to execute HTTP requests to other CGI's or run system commands, then this isn't Zope specific. Look in the Python standard library chapter 6.1.5 "Process Management", or 11.5 urllib2 "extensible library for opening URLs". Beyond that, you WILL need to write python code to glue your Zope components and templates to those third-party programs. Are you trying to tie Zope and Globus? J.F. ________________________________ From: zope-bounces@zope.org [mailto:zope-bounces@zope.org] On Behalf Of sergio diaz Sent: June 8, 2007 14:49 To: lists@zopyx.com Cc: zope@zope.org Subject: Re: [Zope] zope & cgi Hello, I want to use cgi because I have to do a Grid Portal. I want to use Zope for the web interface and then conect Zope with cgi for execute system command and call to binary programs. Could I do it with mod_proxy? Can you recommend me any manual for configure mod_proxy with zope? best regards ________________________________ From: Andreas Jung <lists@zopyx.com> Reply-To: Andreas Jung <lists@zopyx.com> To: sergio diaz <kanetesdm@hotmail.com>, zope@zope.org Subject: Re: [Zope] zope & cgi Date: Fri, 08 Jun 2007 20:25:14 +0200 > > >--On 8. Juni 2007 20:19:10 +0200 sergio diaz <kanetesdm@hotmail.com> >wrote: > >> >> >> >>Hello, >> >>I want to use cgi under zope. I saw a zope product called zcgi but >>I >>don't know how run this. I have added the product but now I don't >>know >>how to work with it. >> > >Welcome in the stoneage. Running Zope behind Apache is supported >through >mod_proxy and using rewrite rules. CGI/FastCGI support is >deprecated. >DON'T use it. If you want to use it, give use three very good >reason. > >-aj ><< attach3 >> ________________________________ Recibe ofertas de empleo adaptadas a tu perfil. Introduce tu CV en MSN Empleo. <http://g.msn.com/8HMAESES/2752??PS=47575>
--On 8. Juni 2007 21:11:09 +0200 sergio diaz <kanetesdm@hotmail.com> wrote:
Hello,
I am trying execute binary programs from zope. Once I achieve it, I will can execute binary programs for send jobs into the Grid throght DRMAA binary programs that it tie with GridWay. After that, GridWay tie with Globus but I don't want to conect with Globus directly.
What you're saying makes very little sense. -aj
+-------[ Andreas Jung ]---------------------- | | | --On 8. Juni 2007 21:11:09 +0200 sergio diaz <kanetesdm@hotmail.com> wrote: | | > | > | > Hello, | > | > I am trying execute binary programs from zope. Once I achieve it, I will | > can execute binary programs for send jobs into the Grid throght DRMAA | > binary programs that it tie with GridWay. After that, GridWay tie with | > Globus but I don't want to conect with Globus directly. | > | | What you're saying makes very little sense. He wants to use Zope as a CGI server, or access CGI on another webserver, not access it via CGI. -- Andrew Milton akm@theinternet.com.au
----- Original Message ----- From: "sergio diaz" <kanetesdm@hotmail.com> To: <jdoyon@NRCan.gc.ca> Cc: <zope@zope.org> Sent: Friday, June 08, 2007 3:11 PM Subject: RE: [Zope] zope & cgi
Hello,
I am trying execute binary programs from zope. Once I achieve it, I will can execute binary programs for send jobs into the Grid throght DRMAA binary programs that it tie with GridWay. After that, GridWay tie with Globus but I don't want to conect with Globus directly.
I don't really understand what you are trying to do, but if you want to execute 'non-zope' code, that resides on the file system, from within zope you may want to look at the python 'commands' module (i like commands.getstatusoutput) - you will have to use a product or external method for this. Jonathan
OK, so use popen() or system() or the commands module as someone suggested. This is all python stuff that has nothing to do with Zope though. The Virtual Hosting stuff doesn't apply to your question. J.F. ________________________________ From: sergio diaz [mailto:kanetesdm@hotmail.com] Sent: June 8, 2007 15:11 To: Doyon, Jean-Francois Cc: zope@zope.org Subject: RE: [Zope] zope & cgi Hello, I am trying execute binary programs from zope. Once I achieve it, I will can execute binary programs for send jobs into the Grid throght DRMAA binary programs that it tie with GridWay. After that, GridWay tie with Globus but I don't want to conect with Globus directly. I will go to see the Virtual Hosting and Python library. best regards ________________________________ From: "Doyon, Jean-Francois" <jdoyon@NRCan.gc.ca> To: "sergio diaz" <kanetesdm@hotmail.com>,<lists@zopyx.com> CC: <zope@zope.org> Subject: RE: [Zope] zope & cgi Date: Fri, 8 Jun 2007 14:56:14 -0400 If what you mean is you want to be able to execute HTTP requests to other CGI's or run system commands, then this isn't Zope specific. Look in the Python standard library chapter 6.1.5 "Process Management", or 11.5 urllib2 "extensible library for opening URLs". Beyond that, you WILL need to write python code to glue your Zope components and templates to those third-party programs. Are you trying to tie Zope and Globus? J.F. ________________________________ From: zope-bounces@zope.org [mailto:zope-bounces@zope.org] On Behalf Of sergio diaz Sent: June 8, 2007 14:49 To: lists@zopyx.com Cc: zope@zope.org Subject: Re: [Zope] zope & cgi Hello, I want to use cgi because I have to do a Grid Portal. I want to use Zope for the web interface and then conect Zope with cgi for execute system command and call to binary programs. Could I do it with mod_proxy? Can you recommend me any manual for configure mod_proxy with zope? best regards ________________________________ From: Andreas Jung <lists@zopyx.com> Reply-To: Andreas Jung <lists@zopyx.com> To: sergio diaz <kanetesdm@hotmail.com>, zope@zope.org Subject: Re: [Zope] zope & cgi Date: Fri, 08 Jun 2007 20:25:14 +0200 > > >--On 8. Juni 2007 20:19:10 +0200 sergio diaz <kanetesdm@hotmail.com> >wrote: > >> >> >> >>Hello, >> >>I want to use cgi under zope. I saw a zope product called zcgi but >>I >>don't know how run this. I have added the product but now I don't >>know >>how to work with it. >> > >Welcome in the stoneage. Running Zope behind Apache is supported >through >mod_proxy and using rewrite rules. CGI/FastCGI support is >deprecated. >DON'T use it. If you want to use it, give use three very good >reason. > >-aj ><< attach3 >> ________________________________ Recibe ofertas de empleo adaptadas a tu perfil. Introduce tu CV en MSN Empleo. <http://g.msn.com/8HMAESES/2752??PS=47575> ________________________________ Acepta el reto MSN Premium: incluye Antivirus y Firewall de McAffee. Descárgalo y pruébalo 2 meses gratis. <http://g.msn.com/8HMAESES/2731??PS=47575>
participants (5)
-
Andreas Jung -
Andrew Milton -
Doyon, Jean-Francois -
Jonathan -
sergio diaz