mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
18 lines
216 B
Tcl
18 lines
216 B
Tcl
#!/usr/bin/env 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 |