6 # This script is used when using Galago on a cluster of machines. Galago will tell
7 # the job scheduler (either its own SSH scheduler, or another one like Grid Engine or
8 # Condor) to execute the galago-tupleflow script on another machine, passing a
9 # serialized job object as a parameter.
11 # September 21, 2007 -- Trevor Strohman
13 # BSD License (http://www.galagosearch.org/license)
17 # Store the root directory of your Galago installation here.
23 # Modify this memory parameter to suit your machine.
35 # The class to execute; you shouldn't change this.
38 CLASS
=galago.tupleflow.execution.LocalStageExecutor
42 # Searches for all jar files in a directory and adds them to
50 for f
in `find $DIRECTORY -name "*.jar"`; do
51 if [ "${#CLASSPATH}" -eq "0" ]; then
54 CLASSPATH
="${CLASSPATH}:${f}"
59 append_classpath
${GALAGO}
62 # Actually run the program:
65 $JAVA -ea $MEMORY -cp $CP $CLASS $@