[Zope] Need to call external programs in a DTML
Itai Tavor
itavor@bigpond.net.au
Mon, 16 Aug 1999 10:37:59 +1000
Constantin Teodorescu wrote:
>Need to call some external programs written in Tcl or Java that will
>update some database tables in order to deliver some information
>retrievable by ordinary Z SQL methods.
>
>I presume that I should add some external methods and some simple Python
>scripts that will call my programs.
>Any example of this kind of action?
>
>Thanks in advance,
>
>--
>Constantin Teodorescu
>FLEX Consulting Braila, ROMANIA
This works for me:
import popen2
o, i, e = popen2.popen3('some_program some_variables')
result = o.read()
error = e.read()
Itai
--
Itai Tavor -- "Je sautille, donc je suis." --
itavor@vic.bigpond.net.au -- - Kermit the Frog --
-- "What he needs now is understanding... and a confederate victory" --
-- Dr. Jacobi, Twin Peaks --