expect docker healthcheck script
Posted to
tcl
by dodobrain at Thu Jun 13 05:31:51 GMT 2019
view raw
#!/usr/bin/expect
set
timeout 4
spawn nc -q 2 127.0.0.1 8888
send "get 123456\r"
expect {
timeout {
exit
1 }
"VALUE 123456*\n\{\"number\":\"123456\"*\}*\nEND"
}
send "quit\r"
Recent Posts
tcl by emiliano
10 days ago
tcl by dandyn
10 days ago
tcl by schelte
17 days ago
tcl by bohagan
20 days ago
tcl by emiliano
21 days ago
tcl by emiliano
21 days ago
tcl by kevin_walzer
23 days ago
tcl by meissa
23 days ago
tcl by meissa
23 days ago
tcl by meissa
23 days ago
Submit
New paste
Documentation
From Jabber