mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
13 lines
260 B
Plaintext
Executable File
13 lines
260 B
Plaintext
Executable File
#!/usr/bin/expect -f
|
|
|
|
log_user 1
|
|
set timeout 5
|
|
match_max 100000
|
|
|
|
if ![info exists env(CLICKHOUSE_PORT_TCP)] {set env(CLICKHOUSE_PORT_TCP) 9000}
|
|
|
|
spawn bash -c "clickhouse-client --port $env(CLICKHOUSE_PORT_TCP) && echo $?"
|
|
expect ":) "
|
|
send -- "\4"
|
|
expect eof
|