Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
tridas.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2script=${0##*/}
3
4if [ -z $JPP_DIR ]; then
5 echo "Variable JPP_DIR undefined."
6 exit
7fi
8
9source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
10
11set_variable: DEBUG DATABASE_DEBUG 2
12set_variable: WORKDIR DATABASE_WORKDIR `pwd`
13
14if do_usage $*; then
15 usage "$script <detector identifier> <run>[-<run>] <nick name>"
16fi
17
18if (( $# == 3 )); then
19 set_variable DETID $1
20 set_variable RUNS $2
21 set_variable NICKNAME $3
22else
23 fatal "Invalid number of arguments."
24fi
25
26datalogs.sh ${DETID} ${RUNS} TriDASManager DispatcherPutMessage
27datalogs.sh ${DETID} ${RUNS} MSG
28datalogs.sh ${DETID} ${RUNS} RC_REPLY
29
30JDatalogString \
31 -f ${DETID}_${RUNS}.TriDASManager.log.gz \
32 -f ${DETID}_${RUNS}.MSG.log.gz \
33 -f ${DETID}_${RUNS}.RC_REPLY.log.gz \
34 -D "data = .*${NICKNAME}.*" \
35 -M "nickname = ${NICKNAME}/${NICKNAME}" \
36 -R "nickname = ${NICKNAME}/${NICKNAME}" > ${NICKNAME}.txt