Jpp  15.0.0-rc.2
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 
exit
Definition: JPizza.sh:36
do echo Generating $dir eval DIR
Definition: JPlotNPE1D.sh:54
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:20
* usage
version
Definition: JCalibratePMT.sh:7