[Zope] Calling command line code from DTML or Python script?

Geir Bækholt lists at elvix.com
Thu Apr 15 04:41:26 EDT 2004


Darshan,
Thursday, April 15, 2004, 4:10:50 AM, you wrote:

> Hi all
 
> Just trying to find how do you call a Command line function (something
> like a shell script in Unix or a cmd file on Windows env) through zope.
 
> How can you call a shell script / cmd script using DTML ? Any ideas?
> A python script would do but calling thru DTML is the preferred
> objective right now!
 
You need to make an External Method, then call that one from DTML (or
preferably ZPT or a pythonscript - you really shouldn't use DTML)
External Methods have the privileges to call things on the filesystem,
though-the-web-code does not.

-- 
__________________________________________________________________

 Geir Bækholt    ·   Interaction Engineer   ·    Plone Solutions

 Development · Training · Support · http://www.plonesolutions.com
__________________________________________________________________




More information about the Zope mailing list