-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtxcheck.sh
More file actions
executable file
·52 lines (45 loc) · 887 Bytes
/
txcheck.sh
File metadata and controls
executable file
·52 lines (45 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
#Location of jar file
JAR_FILE=target/java-examples-1.0.0-SNAPSHOT-jar-with-dependencies.jar
LAUNCH_CLASS=com.owlplatform.example.solver.SimpleFakeSolver
# Solver port for WM
PORT=7008
usage() {
echo "Usage: `basename $0` [-h] [-p PORT] AGG_HOST \
{TX1 | -x HEX_TX1}*"
}
parseopts() {
while getopts ":hp:" optname
do
case "$optname" in
"p")
PORT="$OPTARG"
;;
"h")
usage
exit 0
;;
"?")
echo "Unknown option $OPTARG"
;;
":")
echo "Missing value for option $OPTARG"
;;
*)
echo "Unknown error has occurred"
;;
esac
done
return $OPTIND
}
parseopts "$@"
argstart=$?
shift $(($argstart-1))
if [ $# -lt 1 ]
then
usage
exit 1
fi
AGG_HOST=$1
shift
java -cp $JAR_FILE $LAUNCH_CLASS $AGG_HOST $PORT $@