summaryrefslogtreecommitdiffabout
path: root/tests/aux/in.test
blob: 1fae0341090b9bbb33d2543cfe0c587ac2a7e49b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#! /bin/sh

FILE=${1:?}
IFS=' 	
'
: ${PIESCTL:=piesctl}
PIESCTL="$PIESCTL --no-netrc${PIES_CTLSOCK:+ --url=}$PIES_CTLSOCK"
while read COMMAND ARG
do
    echo $COMMAND $ARG >> $FILE
    case $COMMAND in
	stop) echo "OK shutting down"
	      $PIESCTL shutdown
	      ;;
	enable)
	      $PIESCTL start component ${ARG:?component name not supplied}
	      ;;
	sleep)
	      sleep ${ARG:-1}
	      ;;
	touch)
	      touch ${ARG:?touch argument required}
	      ;;
	quit) exit $ARG;;
	*)    echo "OK $COMMAND $ARG"
              ;;
    esac
done
	    

Return to:

Send suggestions and report system problems to the System administrator.