ClickHouse/dbms/benchmark/infobright/expect.tcl
2013-09-03 12:52:58 +00:00

18 lines
208 B
Tcl

#!/bin/bash
#!/bin/expect
# Set timeout
set timeout 600
# Get arguments
set query [lindex $argv 0]
spawn mysql-ib -u root -D hits
expect "mysql>"
send "$query\r"
expect "mysql>"
send "quit\r"
expect eof