You can not start shell skripts from Zope. At least on directly. Create an ExternalMethod that starts your script using os.system() or os.popen(). Check with the Zope Book for details. -aj --On Freitag, 7. März 2003 11:37 +0100 Sorin Marti <mas@semafor.ch> wrote:
Hi all,
I want to execute a Script from Zope.
I created a file in the 'Extensions' directory containig following code:
[code]
# !/bin/sh echo DEFANGED.23 exit # !/usr/bin/python
import os
os.system( 'ls' )
[/code]
If I want to execute this script, how do I do that?
Thanks -mas
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - ---------------------------------------------------------------------