-
Notifications
You must be signed in to change notification settings - Fork 3
/
startPEB.sh
executable file
·39 lines (31 loc) · 950 Bytes
/
startPEB.sh
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
#!/bin/bash
#
# Shell script to start coda_emu_peb
#
HOSTNAME=$(hostname -s)
# CODA 3 PEB needs JAVA_HOME define
if [ -z $JAVA_HOME ]; then
echo "ERROR: \$JAVA_HOME not defined!"
exit 1
fi
. coda_conf_functions
# Get the PEB component name
codaconf_get_component_name $HOSTNAME PEB
PEBNAME=$CODA_COMPONENT_NAME
# Get this ROC's commandline option
codaconf_get_name_option $HOSTNAME $PEBNAME
PEBOPTION=$CODA_COMPONENT_OPTION
PEB_ACTIVE=$(pgrep coda_emu_peb)
if [ -n "$PEB_ACTIVE" ]; then
echo "WARNING: coda_emu_peb already running"
echo " killing them"
killall -v coda_emu_peb
fi
echo "************************************************************"
echo "Starting PEB on" $HOSTNAME
echo " SESSION =" $SESSION
echo " EXPID =" $EXPID
echo " PEB name =" $PEBNAME
echo " PEB option =" $PEBOPTION
echo "************************************************************"
coda_emu_peb $PEBNAME $PEBOPTION