Jpp
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 if ( do_usage $* ); then
23  usage "$script"
24 fi
25 
26 
27 if (( 1 )); then
28 
29  echo "Test of Linux command ls -l"
30 
31  JProcess -c "ls -l"
32 
33 fi
34 
35 if (( 1 )); then
36 
37  echo "Test string reversed by master (hit <return> to continue)."
38 
39  JProcess -c "JEcho" -rC
40 
41 fi
42 
43 
44 if (( 1 )); then
45 
46  echo "Test string reversed by client (hit <return> to continue)."
47 
48  JProcess -c "JEcho -r" -C
49 
50 fi
51 
52 if (( 1 )); then
53 
54  echo "Test string reversed by master and client (hit <return> to continue)."
55 
56  JProcess -c "JEcho -r" -rC
57 
58 fi
59