ClickHouse/dbms/benchmark/clickhouse/expect.tcl
2015-02-25 03:27:19 +03:00

14 lines
184 B
Tcl

#!/bin/expect
# Set timeout
set timeout 600
# Get arguments
set query [lindex $argv 0]
spawn clickhouse-client --multiline;
expect ":) "
send "$query;\r";
expect ":) "
send "quit";