mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
21 lines
243 B
Tcl
21 lines
243 B
Tcl
#!/bin/bash
|
|
#!/bin/expect
|
|
|
|
# Set timeout
|
|
set timeout 600
|
|
|
|
# Get arguments
|
|
set query [lindex $argv 0]
|
|
|
|
spawn vsql -eU dbadmin
|
|
|
|
expect "dbadmin=>"
|
|
send "\\timing\r"
|
|
|
|
expect "dbadmin=>"
|
|
send "$query\r"
|
|
|
|
expect "dbadmin=>"
|
|
send "\\q\r"
|
|
|
|
expect eof |