I have to admit, I followed the instructions a bit
I can not leave out the quotes if I want to have
FileFilter .rtf /usr/local/bin/catdoc -s8859-1
That fails to parse of course.
Now if I add double quotes as below
FileFilter .doc /usr/bin/antiword "%p"
FileFilter .rtf /usr/local/bin/catdoc "-s8859-1
FileFilter .pdf /usr/bin/pdftotext "%p -"
FileFilter .html.gz /bin/gzip "-c %p"
FileFilter .ppt /usr/local/bin/ppthtml "%p"
FileFilter .xls /usr/local/bin/xls2csv "%p"
FileFilter .ps /usr/bin/ps2ascii "%p"
After processing a couple of hundred files, I now get
a segfault, which i do not get on the same files with
my previous quoting (and modifying filter.c to leave
out the escaping).
Whats the best way to compile with debug & use gdb ?
--- Ludovic Drolez <email@example.com> wrote:
> Hi !
> I've made a few tests. Your problem comes from the
> fact that you use "'%p'"
> on your filefilter line. Now you should simply use
> %p :
> Filefilter .pdf swish_filter.pl %p
> The documentation should be updated...( my fault :-(
> My tests confirms that %p is best. "%p" and '%p'
> seems to work also
> with my test files (files with '"&; spaces and so
> on). But "'%p'"
> should be avoided.
> Ludovic Drolez.
> http://zaurus.palmopensource.com - The Zaurus
> Open Source Portal
> http://www.drolez.com - Personal site - Linux,
> Zaurus and PalmOS stuff
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
Received on Tue Oct 17 10:09:50 2006