mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-22 00:10:52 +00:00
14 lines
184 B
Tcl
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";
|