mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 12:22:12 +00:00
18 lines
188 B
Tcl
18 lines
188 B
Tcl
|
#!/bin/bash
|
||
|
#!/bin/expect
|
||
|
|
||
|
# Set timeout
|
||
|
set timeout 600
|
||
|
|
||
|
# Get arguments
|
||
|
set query [lindex $argv 0]
|
||
|
|
||
|
spawn hive
|
||
|
|
||
|
expect "hive>"
|
||
|
send "$query;\r"
|
||
|
|
||
|
expect "hive>"
|
||
|
send "quit;\r"
|
||
|
|
||
|
expect eof
|