CodeCommitsIssuesPull requestsActionsInsightsSecurity
d8d7c46711b2d765bda8dc6405d59ad08f1aceff

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

benchmark/monetdb/send-query

19lines · modecode

1#!/usr/bin/expect
2
3# Set timeout
4set timeout 600
5
6# Get arguments
7set query [lindex $argv 0]
8
9spawn mclient -u monetdb -d test --timer=clock
10expect "password:"
11send "monetdb\r"
12
13expect "sql>"
14send "$query;\r"
15
16expect "sql>"
17send "\\q\r"
18
19expect eof