Strabon

view strabon @ 76:e2a9aab812bf

grooming
author Kostis Kyzirakos <kkyzir@di.uoa.gr>
date Thu Mar 22 13:16:35 2012 +0100 (2012-03-22)
parents bf7e497a0b9e
children
line source
1 #! /bin/bash
3 dbName=$1
4 dirs=$2
6 # Evaluates a query using Strabon that is stored in $dir
7 #dir='/home/ggarbis/workspaces/Strabon-workspace/Strabon/jars/target'
8 dir='/home/kkyzir/teleios/nkua/Strabon/jars/target'
10 # Arguments for QueryDir
11 HOST='localhost'
12 PORT='50000'
13 DATABASE=$dbName
14 USERNAME='monetdb'
15 PASSWORD='monetdb'
16 FORMAT=''
17 DIRS=$2
18 EXT=$3
20 # Construct classpath with dependencies
21 cd $dir &&
22 for file in `ls -1 *.jar`;
23 do
24 myVar=$myVar./$file":";
25 done;
27 # Evaluate a query
28 java -Xmx5000M -cp $myVar eu.earthobservatory.runtime.monetdb.QueryDir $HOST $PORT $DATABASE $USERNAME $PASSWORD "$DIRS" "$EXT" $FORMAT