: run this script through /bin/sh
# A program to test out the isode services etc.
# Pretty simple minded - but gives some indications.
# Julian Onions <jpo@cs.nott.ac.uk> 15/1/86
# usage : isode-test [ hostname ]
if [ ! -f support/xisoc ]; then
PATH=$PATH:/usr/local/bin export PATH
if [ "x$1" = "x-lpp" ]; then
if [ "x$1" = "x-iaed" ]; then
ECHO=echo SSAP=ssap RECHO=ros_echo
IMISC=${P2}imisc${S} ISOC=${P1}isoc
echo "Hostname set to $host"
elif host="`hostname`"; then
echo "Hostname set to $host"
elif host="`uname`"; then
echo "Hostname set to $host"
echo -n "I give up, what is your host name? "
for i in utctime gentime time users chargen qotd finger pwdgen
$IMISC "$host" $i || error=`expr $error + 1`
$IMISC -c 100 -l 1020 "$host" $i || error=`expr $error + 1`
echo "Test done, Errors: $error"
for i in $ECHO isode/echo
$ISOC "$host" rosap $i < /etc/passwd || error=`expr $error + 1`
for i in $ECHO $RECHO "isode/rtse echo" isode/ros_echo
$ISOC "$host" rtsap "$i" < /etc/passwd || error=`expr $error + 1`
for i in $ECHO isode/echo
$ISOC "$host" psap $i < /etc/passwd || error=`expr $error + 1`
$ISOC "$host" $i echo < /etc/passwd || error=`expr $error + 1`
echo "Test done, Errors: $error"