I have to admit, I followed the instructions a bit
blindly.
I can not leave out the quotes if I want to have
options like
FileFilter .rtf /usr/local/bin/catdoc -s8859-1
-d8859-1 %p
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
-d8859-1 %p"
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 ?
Gertjan
--- Ludovic Drolez <ldrolez@debian.org> 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.
>
> Cheers,
>
> --
> 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
http://mail.yahoo.com
Received on Tue Oct 17 10:09:50 2006