[Zope] shell command in zope on linux
Bernd Dorn
zope-mailinglist at mopa.at
Sat Feb 12 04:09:49 EST 2005
hi list
i try to execute a shell command (namely pdftk) from python/zope to fill
out fdf forms in a pdf document
this is my command, which is generated:
pdftk /tmp/tmpRy0O_T.pdf fill_form /tmp/tmpz4mEG1.fdf output
/tmp/tmpx1TxTD.pdf flatten
the pdf and fdf files are temporary files
i have a testcase which runs the surrounding method successfully (python
only no zope), but wenn i access the method from zope it hangs when the
pdftk command tries to write to the output files and i have to kill -9
the pdftk processes
i've already tried with popen3, os.system etc.
this problem does NOT occur on macos x, only on linux, for windows i
don't know.
my linux:
Linux bd-pc 2.6.10-gentoo-r5 #2 Tue Jan 18 18:20:46 CET 2005 i686
Intel(R) Pentium(R) 4 CPU 2.00GHz GenuineIntel GNU/Linux
is it possible that this is a gcj problem, because pdftk is java
compiled with gcc?
output of gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/specs
Configured with: /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/configure
--enable-version-specific-runtime-libs --prefix=/usr
--bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.5
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3
--host=i686-pc-linux-gnu --disable-altivec --enable-nls
--without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu
--with-system-zlib --disable-checking --disable-werror
--disable-libunwind-exceptions --enable-shared --enable-threads=posix
--disable-multilib --enable-java-awt=gtk --enable-languages=c,c++,java
Thread model: posix
gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
thx in advance, bernd
More information about the Zope
mailing list