Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JDAQDemoClient.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2#
3# \author mdejong
4#
5script=${0##*/}
6
7# ------------------------------------------------------------------------------------------
8#
9# Example script to run JDAQDemoClient.
10#
11# ------------------------------------------------------------------------------------------
12
13
14if [ -z $JPP_DIR ]; then
15 echo "Variable JPP_DIR undefined."
16 exit
17fi
18
19
20source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
21
22set_variable DEBUG 3
23set_variable RUN 1000
24
25if do_usage $*; then
26 usage "$script"
27fi
28
29
30cat>demo.txt<<EOF
31RC_CMD ev_init#hello world;
32RC_CMD ev_configure;
33RC_CMD ev_start#$RUN;
34RC_CMD ev_pause;
35RC_CMD ev_stop;
36RC_CMD ev_reset;
37RC_CMD ev_input#debug=1;
38RC_CMD ev_off;
39EOF
40
41JDAQDemoClient -f demo.txt -c -d $DEBUG
42
43rm -f demo.txt