Blob
1 # $Id: check-idle.e,v 1.1 2002/09/09 22:56:07 alex Exp $3 spawn telnet localhost 67894 expect {5 timeout { exit 1 }6 "Connected"7 }9 send "nick IdleTest\r"10 send "user idle . . :Idle-Test\r"11 expect {12 timeout { exit 1 }13 "376"14 }16 send "lusers\r"17 expect {18 timeout { exit 1 }19 "251 IdleTest :There are 1 users and 0 services on 1 servers" { set r 0 }20 "251 IdleTest :There are" { set r 99 }21 }23 send "quit\r"24 expect {25 timeout { exit 1 }26 "Connection closed"27 }29 exit $r31 # -eof-