mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-16 20:53:27 +00:00
15 lines
196 B
Tcl
15 lines
196 B
Tcl
#!/bin/bash
|
|
#!/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";
|