Newer
Older
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
#!/bin/sh
# start, or restart, caputRecorder.py
PREFIX=$1
if [ "" == "${PREFIX}" ] ; then
PREFIX="xxx:"
fi
EPICS_APP=/home/oxygen/MOONEY/epics/synApps/support/xxx
EPICS_APP_PYTHON_DIR=${EPICS_APP}/xxxApp/op/python
output=`perl -s ${EPICS_APP}/release.pl -form=bash ${EPICS_APP}`
eval $output
CAPUTRECORDER_PY=${CAPUTRECORDER}/caputRecorderApp/op/python/caputRecorder.py
COMMAND="python ${CAPUTRECORDER_PY} ${PREFIX}"
MY_UID=`id -u`
CAPUTRECORDER_PID=`pgrep -f "${COMMAND}" -u $MY_UID`
if [ "" != "${CAPUTRECORDER_PID}" ] ; then
kill ${CAPUTRECORDER_PID}
fi
cd ${EPICS_APP_PYTHON_DIR}
# start caputRecorder.py
# The first prefix specifies the caputRecorder.db database instance that will
# function as a user interface for caputRecorder.py, and notify it when a
# caput occurrs.
$COMMAND&
# To record caputs to other iocs, add their prefixes to the command line:
# All iocs must be running access security configured to trap writes, and
# must load caputRecorder.db.
#${COMMAND} yyy: zzz:&