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 schelte
6 days ago
tcl by emiliano
14 days ago
tcl by fvogel
14 days ago
tcl by emiliano
14 days ago
tcl by rmax
31 days ago
tcl by oldlaptop
31 days ago
tcl by schelte
31 days ago
tcl by Bradipo
44 days ago
tcl by kbk
54 days ago
tcl by oldlaptop
57 days ago
Submit
New paste
Documentation
From Jabber