Skip to main content.
home | support | download

Back to List Archive

Re: SWISH-E 2.4.4 filters can not locate files

From: Gertjan Hofman <gertjan_hofman(at)>
Date: Tue Oct 17 2006 - 17:09:47 GMT
I have to admit, I followed the instructions a bit
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 ?


--- Ludovic Drolez <> 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 %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.
>       - The Zaurus
> Open Source Portal
>      - 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