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