Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
executable file 11 lines (8 sloc) 138 Bytes
#!/usr/bin/env expect
spawn nc -w 2 $env(ADDR) $env(PORT)
set EC 0
send "PING\r\n"
expect "+PONG"
send "QUIT\r\n"
expect "+OK"
exit $EC