Permalink
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 |
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.