mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
20 lines
249 B
Tcl
20 lines
249 B
Tcl
#!/usr/bin/env bash
|
|
#!/bin/expect
|
|
|
|
# Set timeout
|
|
set timeout 600
|
|
|
|
# Get arguments
|
|
set query [lindex $argv 0]
|
|
|
|
spawn mclient -u monetdb -d hits
|
|
expect "password:"
|
|
send "monetdb\r"
|
|
|
|
expect "sql>"
|
|
send "$query\r"
|
|
|
|
expect "sql>"
|
|
send "\\q\r"
|
|
|
|
expect eof |