Calling command line code from DTML or Python script?
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! Darshan
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 __________________________________________________________________
On Thu, Apr 15, 2004 at 10:41:26AM +0200, Geir B?kholt wrote:
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.
You could also install ZShellScripts from here: http://www.librelogiciel.com/software/ Disclaimer: I've never used it and the idea sounds a bit nutty :-) -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's THE PHASE! (random hero from isometric.spaceninja.com)
participants (3)
-
Darshan Preet Singh Manku -
Geir Bækholt -
Paul Winkler