isode-test

来自「ftam等标准协议服务器和客户端的源代码。」· 代码 · 共 89 行

TXT
89
字号
: 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    P1= P2=else    P1=support/x P2=imisc/xfierror=0 fast=0if [ "x$1" = "x-lpp" ]; then    fast=1 S=-lpp    shiftelse    S=fiif [ "x$1" = "x-iaed" ]; then    ECHO= SSAP= RECHO=    shiftelse    ECHO=echo SSAP=ssap RECHO=ros_echofiIMISC=${P2}imisc${S} ISOC=${P1}isocif [ $# -gt 0 ]; then    host="$1"    echo "Hostname set to $host"elif host="`hostname`"; then    echo "Hostname set to $host"elif host="`uname`"; then    echo "Hostname set to $host"else    echo -n "I give up, what is your host name? "    read hostfifor i in utctime gentime time users chargen qotd finger pwdgendoecho "$i:"$IMISC "$host" $i || error=`expr $error + 1`donefor i in ping sink echodoecho "$i:"$IMISC -c 100 -l 1020 "$host" $i || error=`expr $error + 1`doneif [ $fast = 1 ]; then    echo "Test done, Errors: $error"    exit $errorfifor i in $ECHO isode/echodoecho "rosap $i:"$ISOC "$host" rosap $i < /etc/passwd || error=`expr $error + 1`donefor i in $ECHO $RECHO "isode/rtse echo" isode/ros_echodoecho "rtsap $i:"$ISOC "$host" rtsap "$i" < /etc/passwd || error=`expr $error + 1`donefor i in $ECHO isode/echodoecho "psap $i:"$ISOC "$host" psap $i < /etc/passwd || error=`expr $error + 1`donefor i in $SSAP tsapdoecho "$i echo:"$ISOC "$host" $i echo < /etc/passwd || error=`expr $error + 1`doneecho "Test done, Errors: $error"exit $error

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?