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

FILE=${1:?}
IFS=' 	
'
while read COMMAND ARG
do
    echo $COMMAND $ARG >> $FILE
    case $COMMAND in
	stop) if [ -n "$STOPCMD" ]; then
		  echo "STOP"
		  $STOPCMD
	      else
		  echo "OK $COMMAND $ARG"
	      fi
	      ;;
	quit) exit $ARG;;
	*)    echo "OK $COMMAND $ARG"
              ;;
    esac
done
	    

Return to:

Send suggestions and report system problems to the System administrator.