e38af10998
- ncat-protocol-sanity-test - simple-functionality-test
14 lines
176 B
Plaintext
Executable File
14 lines
176 B
Plaintext
Executable File
#!/usr/bin/expect
|
|
|
|
set timeout 10
|
|
|
|
spawn ncat -vl --udp 6666
|
|
|
|
expect {
|
|
eof { exit 2 }
|
|
default { exit 1 }
|
|
"ClientSend\r" { send -- "ServerSend\r" }
|
|
}
|
|
sleep 1
|
|
exit 0
|