-
Notifications
You must be signed in to change notification settings - Fork 0
/
frogclient4
executable file
·28 lines (28 loc) · 1.04 KB
/
frogclient4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/expect -f
#
spawn telnet localhost 7000
expect "Trying 127.0.0.1..."
expect "Connected to localhost."
expect "Escape character is '^]'."
log_file -noappend testserver4.out
send "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
send "<FoLiA xmlns=\"http://ilk.uvt.nl/folia\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:id=\"WR-P-E-J-0000000001\" version=\"0.8\" generator=\"libfolia-v0.4\">\n"
send " <metadata type=\"imdi\">\n"
send " <annotations>\n"
send " <division-annotation annotator=\"ucto\" annotatortype=\"auto\" set=\"div\"/>\n"
send " </annotations>\n"
send " </metadata>\n"
send " <text xml:id=\"WR-P-E-J-0000000001.text\">\n"
send " <div xml:id=\"WR-P-E-J-0000000001.div0.1\" class=\"aha\">\n"
send " <head xml:id=\"WR-P-E-J-0000000001.head.1\">\n"
send " <s xml:id=\"WR-P-E-J-0000000001.head.1.s.1\">\n"
send " <t>Dit is een andere test van FoLia input?</t>\n"
send " </s>\n"
send " </head>\n"
send " </div>\n"
send " </text>\n"
send "</FoLiA>\n"
send "\n"
expect READY
send_log "\r\n"
log_file