[Zope] shell command in zope on linux

Bernd Dorn zope-mailinglist at mopa.at
Sat Feb 12 08:17:27 EST 2005


hm, i don' t think that this is the problem, because the test runs with  
the same user as the zope process

On 12.02.2005, at 13:52, Jonathan Hobbs wrote:

> I don't know about your specific situation, but we do lots of file  
> writes
> from external methods.  The only trick is to make sure that you are  
> opening
> files and writing to a directory that zope has access to (eg. for us:
> /apps/zope/var).
>
> HTH
>
> Jonathan
>
>
> ----- Original Message -----
> From: "Bernd Dorn" <zope-mailinglist at mopa.at>
> To: <zope at zope.org>
> Sent: February 12, 2005 4:09 AM
> Subject: [Zope] shell command in zope on linux
>
>
>> 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
>> _______________________________________________
>> 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