mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 09:22:05 +00:00
20 lines
249 B
Plaintext
Executable File
20 lines
249 B
Plaintext
Executable File
#!/usr/bin/expect
|
|
|
|
# Set timeout
|
|
set timeout 600
|
|
|
|
# Get arguments
|
|
set query [lindex $argv 0]
|
|
|
|
spawn mclient -u monetdb -d test --timer=clock
|
|
expect "password:"
|
|
send "monetdb\r"
|
|
|
|
expect "sql>"
|
|
send "$query;\r"
|
|
|
|
expect "sql>"
|
|
send "\\q\r"
|
|
|
|
expect eof
|