ClickHouse/benchmark/monetdb/send-query

20 lines
249 B
Plaintext
Raw Normal View History

2020-08-12 02:56:56 +00:00
#!/usr/bin/expect
# Set timeout
set timeout 600
# Get arguments
set query [lindex $argv 0]
2020-08-12 02:56:56 +00:00
spawn mclient -u monetdb -d test --timer=clock
expect "password:"
send "monetdb\r"
expect "sql>"
2020-08-12 02:56:56 +00:00
send "$query;\r"
expect "sql>"
send "\\q\r"
2020-08-12 02:56:56 +00:00
expect eof