[Zope] Problems Executing pdftk from within zope.

Jonathan dev101 at magma.ca
Fri Apr 7 19:24:51 EDT 2006


Have you tried running it as a spawned job from the shell?  If something is 
pooched in the environment then the job should hang (then you know it is not 
a zope problem).

Jonathan

----- Original Message ----- 
From: "Jerry Westrick" <jerry at westrick.com>
To: <Zope at zope.org>
Sent: Friday, April 07, 2006 6:42 PM
Subject: [Zope] Problems Executing pdftk from within zope.


> 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
> _______________________________________________
> Zope maillist  -  Zope at 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 )
> 



More information about the Zope mailing list