[Zope] 'popen' calls not happening?

Jean Jordaan jean@upfrontsystems.co.za
Fri, 7 Sep 2001 12:42:25 +0200


Hi all

We've been successfully using this code from an external
method to run a third-party program, but it's mysteriously
stopped working::

    try:
        child_stdout, \
        child_stdin, \
        child_stderr =
popen3('/usr/local/zope/creme/2-3-0/Extensions/passfeko
/usr/local/zope/creme/2-3-0/Extensions/passfeko.xml')
        success.append("'passfeko' executed.\n") #DBG
    except:
        exception = sys.exc_info()
        errors.append( "Could not execute 'passfeko'" \
                     + '\n --' + str(exception[0]) \
                     + '\n --' + str(exception[1]) \
                     + '\n --' + str(exception[2]) \
                     ) # TODO: display the traceback.

The third-party program, 'passfeko', writes a textfile,
taking the 'passfeko.xml' file as input. If I run::

  ./passfeko passfeko.xml

from the commandline, the textfile is flawlessly created.

When run from Zope, no exception is raised, but no textfile
is created.

Any ideas?

Jean