4 # ------------------------------------------------------------------------------------------
6 # Example script to plot slow control data from database.
8 # ------------------------------------------------------------------------------------------
10 if [ -z $JPP_DIR ]; then
11 echo "Variable JPP_DIR undefined."
15 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
18 set_variable WORKDIR ${TMPDIR:-/tmp}/
24 if (( $# == 1 )); then
25 set_variable INPUT_FILE $1
27 fatal "Wrong number of arguments."
31 cat>$WORKDIR/parameters.txt<<EOF
36 plot-Tuna.sh ${INPUT_FILE} $WORKDIR/parameters.txt