Commit b45ec8aaf46ea99310d22b4fa9593c9118fc8fc9
1 parent
2c58d39a
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 git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7370 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
13 additions
and
0 deletions
bin/schedulerTask.sh
0 → 100755
| 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 | ... | ... |