#!/usr/bin/expect -f log_user 1 set timeout 5 match_max 100000 spawn bash -c "$env(CLICKHOUSE_CLIENT) --port $env(CLICKHOUSE_PORT_TCP) && echo $?" expect ":) " send -- "\4" expect eof