Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JProcess.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2#
3# \author mdejong
4#
5
6version=1.0
7script=${0##*/}
8
9# ------------------------------------------------------------------------------------------
10#
11# Utility script to test JProcess
12#
13# ------------------------------------------------------------------------------------------
14
15if [ -z $JPP_DIR ]; then
16 echo "Variable JPP_DIR undefined."
17 exit
18fi
19
20source $JPP_DIR/setenv.sh $JPP_DIR
21
22set_variable DIR $JPP_DIR/examples/JSystem
23
24if do_usage $*; then
25 usage "$script"
26fi
27
28
29if (( 1 )); then
30
31 echo "Test of Linux command ls -l"
32
33 $DIR/JProcess -c "ls -l"
34
35fi
36
37if (( 1 )); then
38
39 echo "Test string reversed by master (hit <return> to continue)."
40
41 $DIR/JProcess -c "$DIR/JEcho" -rC
42
43fi
44
45
46if (( 1 )); then
47
48 echo "Test string reversed by client (hit <return> to continue)."
49
50 $DIR/JProcess -c "$DIR/JEcho -r" -C
51
52fi
53
54if (( 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
60fi
61