external method / passing variables....
Hi, I'm trying to run system commands from zope, I want to pass arguments to the external method (e.g. something like: "commands.getoutput('ls -l "argument passed from zope" > some_file') is this sort of thing doable? Any suggested reading materials for playing around with external methods? Regards, Mehmet
Mehmet Yousouf wrote:
Hi, I'm trying to run system commands from zope, I want to pass arguments to the external method (e.g. something like: "commands.getoutput('ls -l "argument passed from zope" > some_file') is this sort of thing doable? Any suggested reading materials for playing around with external methods?
Regards, Mehmet
First, you have thought about the security of that (same like doing something like this in a CGI). To answer your question: http://www.zope.org/Documentation/How-To/ExternalMethods btw. it was the first match when searching www.zope.org for external method ;-). cheers, oliver
participants (2)
-
Mehmet Yousouf -
Oliver Bleutgen