Jpp  17.3.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JProcess.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 # \author mdejong
4 #
5 
6 version=1.0
7 script=${0##*/}
8 
9 # ------------------------------------------------------------------------------------------
10 #
11 # Utility script to test JProcess
12 #
13 # ------------------------------------------------------------------------------------------
14 
15 if [ -z $JPP_DIR ]; then
16  echo "Variable JPP_DIR undefined."
17  exit
18 fi
19 
20 source $JPP_DIR/setenv.sh $JPP_DIR
21 
22 set_variable DIR $JPP_DIR/examples/JSystem
23 
24 if do_usage $*; then
25  usage "$script"
26 fi
27 
28 
29 if (( 1 )); then
30 
31  echo "Test of Linux command ls -l"
32 
33  $DIR/JProcess -c "ls -l"
34 
35 fi
36 
37 if (( 1 )); then
38 
39  echo "Test string reversed by master (hit <return> to continue)."
40 
41  $DIR/JProcess -c "$DIR/JEcho" -rC
42 
43 fi
44 
45 
46 if (( 1 )); then
47 
48  echo "Test string reversed by client (hit <return> to continue)."
49 
50  $DIR/JProcess -c "$DIR/JEcho -r" -C
51 
52 fi
53 
54 if (( 1 )); then
55 
56  echo "Test string reversed by master and client (hit <return> to continue)."
57 
58  $DIR/JProcess -c "$DIR/JEcho -r" -rC
59 
60 fi
61 
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DETECTOR_ID set_array RUNS if do_usage *then usage $script< source directory >[user directory] nThe source directory corresponds to a pre calibrated D0ARCA009 detector fi case set_variable DIR
version
Definition: JEditTuneHV.sh:5
exit
Definition: JPizza.sh:36
then echo
static const double C
Physics constants.
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:21
* usage
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'