I would very very gratefull if you could help me please.
I am trying to execute swish with a filter and I don't know why but it doesn't work well.
# vi user.config
FilterDir /usr/local/swish/filters/
#FileFilter .gz gzip-filter.sh
#FileFilter .pdf pdf-filter.sh
FileFilter .pdf sample.sh
# more sample.sh
#!/bin/sh
echo "File to convert: $1"
echo "URL or Filename: $2"
echo "If arg 2 is not empty this"
echo " this is the filename or url"
echo " (means: $1 = temp. file)"
#
When I execute swish I have the following:
# ./swish-e -c user.config
Indexing Data Source: "File-System"
Indexing /home/www-servers/https-wwwesi/doc/pruebas/..
Checking dir "/home/www-servers/https-wwwesi/doc/pruebas/"...
Broken Pipe
Removing very common words...
no words removed.
Writing main index...
Computing hash table ...
Nevertheless if I use a filter gzip-filter.gz it works fine.
more gzip-filter.sh
#!/usr/local/bin/perl
$GZIP="/usr/bin/gzip";
$src_name=@ARGV[1];
if ($src_name eq "") {
$src_name = @ARGV[0];
}
system ("cat \"@ARGV[0]\" | gzip -d");
Regards,
Urtzi
Received on Tue Apr 16 08:56:07 2002