Jpp  debug
the software that should make you happy
tridas.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 script=${0##*/}
3 
4 if [ -z $JPP_DIR ]; then
5  echo "Variable JPP_DIR undefined."
6  exit
7 fi
8 
9 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
10 
11 set_variable: DEBUG DATABASE_DEBUG 2
12 set_variable: WORKDIR DATABASE_WORKDIR `pwd`
13 
14 if do_usage $*; then
15  usage "$script <detector identifier> <run>[-<run>] <nick name>"
16 fi
17 
18 if (( $# == 3 )); then
19  set_variable DETID $1
20  set_variable RUNS $2
21  set_variable NICKNAME $3
22 else
23  fatal "Invalid number of arguments."
24 fi
25 
26 datalogs.sh ${DETID} ${RUNS} TriDASManager DispatcherPutMessage
27 datalogs.sh ${DETID} ${RUNS} MSG
28 datalogs.sh ${DETID} ${RUNS} RC_REPLY
29 
30 JDatalogString \
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