hi,all

when use the telnet01 to test telnet service, it always failed with
............
connect to address 9.181.140.57 port 544: Connection refused
connect to address 9.181.140.57 port 544: Connection refused
trying normal rsh (/usr/bin/rsh)
while executing
"exec rsh -n -l $RUSER $HOST "cat $TESTLOG/$RUSER.$HOST|grep -c 9""
("foreach" body line 24)
invoked from within
"foreach HOST $RHOST {
send_user "Host: $HOST\n"
............
it is because the rsh find the /usr/kerberos/bin/rsh at first within the $PATH, then the failure of kerberos rsh result the test interrupted.

This patch can avoid the /testcases/network/tcp_cmds/telnet/telnet01 test case using Kerberos rsh which return an error info and result the test failed.

--- telnet/telnet01 2006-07-17 18:27:45.000000000 -0400
+++ telnet_patch/telnet01 2006-08-28 10:35:14.000000000 -0400
@@ -100,10 +100,10 @@ while {$count < $LOOPCOUNT} {
exp_send "logout\r"

send_user "CHECKING TELNET STATUS\n"
- set nummatch [exec rsh -n -l $RUSER $HOST "cat $TESTLOG/$RUSER.$HOST|grep -c 9"]
+ set nummatch [exec /usr/bin/rsh -n -l $RUSER $HOST "cat $TESTLOG/$RUSER.$HOST|grep -c 9"]
if {$nummatch==1} {
send_user "$TC interactive Test Successful in LOOP $count\r"
- exec rsh -n -l $RUSER $HOST "rm -f $TESTLOG/$RUSER.$HOST"
+ exec /usr/bin/rsh -n -l $RUSER $HOST "rm -f $TESTLOG/$RUSER.$HOST"
} else {
send_user "$TC interactive session failed\n"
exit 1

Best Regards,

Ying Tao(Ӣ)
-------------------
Linux Test, Linux Technology Center, China Systems & Technology Lab
China Development Labs, Beijing Tel: 86-10-82782244 Ext. 3194 Email: yingtao@cn.ibm.com