Commit 3c9e699de0b707fe42b7a954dc533c5d3082552a
1 parent
0a626484
Merged in from DEV trunk...
KTS-2484 "Create shell script wrappers for search scripts so they may be invoked by scheduler" Implemented. Committed By: Conrad Vermeulen Reviewed By: Kevin Fourie KTS-673 "The search algorithm needs some work" Updated. using externalBinary Committed By: Conrad Vermeulen Reviewed By: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/trunk@7373 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
3 changed files
with
15 additions
and
2 deletions
bin/schedulerTask.sh
0 → 100644
| 1 | +#!/bin/sh | |
| 2 | + | |
| 3 | +# SETUP PATH TO FIND PHP | |
| 4 | +PATH=$PATH:../../php/bin:../../php: | |
| 5 | + | |
| 6 | +# WORK OUT DIRECTORIES | |
| 7 | +USER_DIR=`pwd` | |
| 8 | +SCRIPT_DIR=$USER_DIR/`dirname $0` | |
| 9 | +PHP_SCRIPT_DIR=$SCRIPT_DIR/ | |
| 10 | + | |
| 11 | +# EXECUTE SCRIPT IN THE SCRIPT DIRECTORY | |
| 12 | +cd $PHP_SCRIPT_DIR | |
| 13 | +php -Cq scheduler.php | |
| 0 | 14 | \ No newline at end of file | ... | ... |
search2/indexing/extractors/PDFExtractor.inc.php
| ... | ... | @@ -4,7 +4,7 @@ class PDFExtractor extends ApplicationExtractor |
| 4 | 4 | { |
| 5 | 5 | public function __construct() |
| 6 | 6 | { |
| 7 | - parent::__construct('extractors','pdftotext','pdftotext',_kt('PDF Text Extractor'),'-nopgbrk -enc UTF-8 {source} {target}'); | |
| 7 | + parent::__construct('externalBinary','pdftotext','pdftotext',_kt('PDF Text Extractor'),'-nopgbrk -enc UTF-8 {source} {target}'); | |
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | public function getSupportedMimeTypes() | ... | ... |
search2/indexing/extractors/PSExtractor.inc.php
| ... | ... | @@ -4,7 +4,7 @@ class PSExtractor extends ApplicationExtractor |
| 4 | 4 | { |
| 5 | 5 | public function __construct() |
| 6 | 6 | { |
| 7 | - parent::__construct('extractors','pstotext','pstotext',_kt('PostScript Text Extractor'),'-nopgbrk -enc UTF-8 {source} {target}'); | |
| 7 | + parent::__construct('externalBinary','pstotext','pstotext',_kt('PostScript Text Extractor'),'-nopgbrk -enc UTF-8 {source} {target}'); | |
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | public function getSupportedMimeTypes() | ... | ... |