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 bch
5 days ago
tcl by Bradipo
5 days ago
tcl by aspect
5 days ago
tcl by Bradipo
5 days ago
tcl by Bradipo
5 days ago
tcl by Bradipo
5 days ago
lilypond by Bradipo
6 days ago
tcl by cgm
16 days ago
tcl by dandyn
25 days ago
tcl by Stu
26 days ago
Submit
New paste
Documentation
From Jabber