[Zope] Problems Executing pdftk from within zope.
Jerry Westrick
jerry at westrick.com
Fri Apr 7 18:42:46 EDT 2006
Hello Zopistas...
I trying to modify pdf files from within zope.
I use the following command:
'/usr/bin/pdftk /t/in.pdf attach_files /t/a1.pdf /t/a2.pdf output /t/out.pdf'
When I execute it as root it works...
When executed from within zope,
(this i've done via external command that executes os.system(...))
A task is started to executed it, but the task hangs.
Even with set the setuid bit on /usr/bin/pdftk, making the zope spawned task
run as root the command just hangs....
(I've confirmed that the task is actually running as root!)
I'm sure I've forgoten something silly,
but after bashing it around for several hours I just can't figure out
why it hangs
Any suggestions at what the problem could be are welcome 8-)
Jerry
P.S. Here my Control panel info, incase it's relevant....
Zope Version (unreleased version, python 2.3.4, linux2)
Python Version 2.3.4 (#1, Oct 5 2004, 00:26:51) [GCC 3.3.4 (pre 3.3.5
20040809)]
System Platform linux2
SOFTWARE_HOME /opt/zope/lib/python
ZOPE_HOME /opt/zope
INSTANCE_HOME /var/opt/zope/default
CLIENT_HOME /var/opt/zope/default/var
Network Services
ZServer.HTTPServer.zhttp_server (Port: 8080)
ZServer.FTPServer.FTPServer (Port: 8021)
ZServer.HTTPServer.zhttp_server (Port: 8088)
Process Id 32058 (1110281136)
Running For 12 min 58 sec
More information about the Zope
mailing list