This repository has been archived by the owner on Jul 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.exp
executable file
·273 lines (269 loc) · 12 KB
/
script.exp
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
#!/usr/bin/expect -f
#
# This Expect script was generated by autoexpect on Wed Apr 2 21:01:32 2014
# Expect and autoexpect were both written by Don Libes, NIST.
#
# Note that autoexpect does not guarantee a working script. It
# necessarily has to guess about certain things. Two reasons a script
# might fail are:
#
# 1) timing - A surprising number of programs (rn, ksh, zsh, telnet,
# etc.) and devices discard or ignore keystrokes that arrive "too
# quickly" after prompts. If you find your new script hanging up at
# one spot, try adding a short sleep just before the previous send.
# Setting "force_conservative" to 1 (see below) makes Expect do this
# automatically - pausing briefly before sending each character. This
# pacifies every program I know of. The -c flag makes the script do
# this in the first place. The -C flag allows you to define a
# character to toggle this mode off and on.
set force_conservative 0 ;# set to 1 to force conservative mode even if
;# script wasn't run conservatively originally
if {$force_conservative} {
set send_slow {1 .1}
proc send {ignore arg} {
sleep .1
exp_send -s -- $arg
}
}
#
# 2) differing output - Some programs produce different output each time
# they run. The "date" command is an obvious example. Another is
# ftp, if it produces throughput statistics at the end of a file
# transfer. If this causes a problem, delete these patterns or replace
# them with wildcards. An alternative is to use the -p flag (for
# "prompt") which makes Expect only look for the last line of output
# (i.e., the prompt). The -P flag allows you to define a character to
# toggle this mode off and on.
#
# Read the man page for more info.
#
# -Don
set timeout -1
spawn $env(SHELL)
match_max 100000
expect -exact "\[01;32mmint@mint-VirtualBox\[01;34m ~/Desktop/CPSC445Project \$\[00m "
send -- "\[B"
expect -exact ""
send -- "\[A"
expect -exact "RNAeval -v -d2"
send -- "\r"
expect -exact "\r
\r
Input sequence & structure; @ to quit\r
Use '&' to connect 2 sequences that shall form a complex.\r
....,....1....,....2....,....3....,....4....,....5....,....6....,....7....,....8\r
"
send -- "GGCGGCGCCGGCCGGCGGCCCACGGCCCCCCAGCCAGGGGGGCUGAGGAAACUCCGCCCUCCCCGCGGCGGCCGGGCCCCGCAAGGGGCACGGGUGAAACCCGUGGCAACGGCACAGAAACGACACGGCCCCGGGGCGUGUCGAGGACGCGGCUAGGCCGCCCUGGCAACAGGGCGGCAGCAAACCGCAGAGGAACCCCGGGGAUGCGGUGAAACGGCCGCCCCCGGCGGAGCAAGGCCCCCGGGCGGUGAGGGCCGCGCGAAGCCCGGGGGGAGACCGCUUAGCCCAAUGCCGCCGAAGUACAGAAGGCGGGUUAUGGCCGGCGCCGCC\r"
expect -exact "GGCGGCGCCGGCCGGCGGCCCACGGCCCCCCAGCCAGGGGGGCUGAGGAAACUCCGCCCUCCCCGCGGCGGCCGGGCCCCGCAAGGGGCACGGGUGAAACCCGUGGCAACGGCACAGAAACGACACGGCCCCGGGGCGUGUCGAGGACGCGGCUAGGCCGCCCUGGCAACAGGGCGGCAGCAAACCGCAGAGGAACCCCGGGGAUGCGGUGAAACGGCCGCCCCCGGCGGAGCAAGGCCCCCGGGCGGUGAGGGCCGCGCGAAGCCCGGGGGGAGACCGCUUAGCCCAAUGCCGCCGAAGUACAGAAGGCGGGUUAUGGCCGGCGCCGCC\r
"
send -- "(((((((((((((((((((((.(((((((((.....))))))))).))..........((((........((((((((((....)))))((((((...))))))((...((((.(.(....(.(.(((((((((((..(.((......((((.(.((((((((((....)))))))))..).).)))).)).)..)))))))).).))))....)))))).))))))))))).(.(((((((((((..((.(.....).))..)))))))))....))..).........)))))).....................)))))))))))))\r"
expect -exact "(((((((((((((((((((((.(((((((((.....))))))))).))..........((((........((((((((((....)))))((((((...))))))((...((((.(.(....(.(.(((((((((((..(.((......((((.(.((((((((((....)))))))))..).).)))).)).)..)))))))).).))))....)))))).))))))))))).(.(((((((((((..((.(.....).))..)))))))))....))..).........)))))).....................)))))))))))))\r
length = 330\r
External loop : 0\r
Interior loop ( 1,330) GC; ( 2,329) GC: -330\r
Interior loop ( 2,329) GC; ( 3,328) CG: -340\r
Interior loop ( 3,328) CG; ( 4,327) GC: -240\r
Interior loop ( 4,327) GC; ( 5,326) GC: -330\r
Interior loop ( 5,326) GC; ( 6,325) CG: -340\r
Interior loop ( 6,325) CG; ( 7,324) GC: -240\r
Interior loop ( 7,324) GC; ( 8,323) CG: -340\r
Interior loop ( 8,323) CG; ( 9,322) CG: -330\r
Interior loop ( 9,322) CG; ( 10,321) GC: -240\r
Interior loop ( 10,321) GC; ( 11,320) GC: -33t-VirtualBox\[01;34m ~/Desktop/CPSC445Project \$\[00m "
send -- ""
expect -exact "^C\r
\[01;32mmint@mint-VirtualBox\[01;34m ~/Desktop/CPSC445Project \$\[00m "
send -- ""
expect -exact "^C\r
\[01;32mmint@mint-VirtualBox\[01;34m ~/Desktop/CPSC445Project \$\[00m "
send -- ""
expect -exact "^C\r
\[01;32mmint@mint-VirtualBox\[01;34m ~/Desktop/CPSC445Project \$\[00m "
send -- "\[A"
expect -exact "RNAeval -v -d2"
send -- "\[A\[B"
expect -exact "\[K"
send -- ""
expect -exact "\[K"
send -- ""
expect -exact "\[K"
send -- ""
expect -exact "\[K"
send -- ""
expect -exact "\[K"
send -- ""
expect -exact "\[K"
send -- ""
expect -exact "\[K"
send -- ""
expect -exact "\[K"
send -- ""
expect -exact "\[K"
send -- ""
expect -exact "\[K"
send -- ""
expect -exact "\[K"
send -- ""
expect -exact "\[K"
send -- ""
expect -exact "\[K"
send -- ""
expect -exact "\[K"
send -- ""
expect -exact ""
send -- ""
expect -exact ""
send -- ""
expect -exact ""
send -- ""
expect -exact ""
send -- ""
expect -exact ""
send -- ""
expect -exact ""
send -- ""
expect -exact ""
send -- ""
expect -exact ""
send -- ""
expect -exact ""
send -- ""
expect -exact ""
send -- ""
expect -exact ""
send -- ""
expect -exact ""
send -- ""
expect -exact ""
send -- ""
expect -exact ""
send -- ""
expect -exact ""
send -- ""
expect -exact ""
send -- ""
expect -exact ""
send -- ""
expect -exact ""
send -- ""
expect -exact ""
send -- ""
expect -exact ""
send -- "autoexpect\r"
expect -exact "autoexpect\r
autoexpect started, file is script.exp\r
\[01;32mmint@mint-VirtualBox\[01;34m ~/Desktop/CPSC445Project \$\[00m "
send -- "\[B"
expect -exact ""
send -- "\[A"
expect -exact "RNAeval -v -d2"
send -- "\r"
expect -exact "\r
\r
Input sequence & structure; @ to quit\r
Use '&' to connect 2 sequences that shall form a complex.\r
....,....1....,....2....,....3....,....4....,....5....,....6....,....7....,....8\r
"
send -- "GGCGGCGCCGGCCGGCGGCCCACGGCCCCCCAGCCAGGGGGGCUGAGGAAACUCCGCCCUCCCCGCGGCGGCCGGGCCCCGCAAGGGGCACGGGUGAAACCCGUGGCAACGGCACAGAAACGACACGGCCCCGGGGCGUGUCGAGGACGCGGCUAGGCCGCCCUGGCAACAGGGCGGCAGCAAACCGCAGAGGAACCCCGGGGAUGCGGUGAAACGGCCGCCCCCGGCGGAGCAAGGCCCCCGGGCGGUGAGGGCCGCGCGAAGCCCGGGGGGAGACCGCUUAGCCCAAUGCCGCCGAAGUACAGAAGGCGGGUUAUGGCCGGCGCCGCC\r"
expect -exact "GGCGGCGCCGGCCGGCGGCCCACGGCCCCCCAGCCAGGGGGGCUGAGGAAACUCCGCCCUCCCCGCGGCGGCCGGGCCCCGCAAGGGGCACGGGUGAAACCCGUGGCAACGGCACAGAAACGACACGGCCCCGGGGCGUGUCGAGGACGCGGCUAGGCCGCCCUGGCAACAGGGCGGCAGCAAACCGCAGAGGAACCCCGGGGAUGCGGUGAAACGGCCGCCCCCGGCGGAGCAAGGCCCCCGGGCGGUGAGGGCCGCGCGAAGCCCGGGGGGAGACCGCUUAGCCCAAUGCCGCCGAAGUACAGAAGGCGGGUUAUGGCCGGCGCCGCC\r
"
send -- "(((((((((((((((((((((.(((((((((.....))))))))).))..........((((........((((((((((....)))))((((((...))))))((...((((.(.(....(.(.(((((((((((..(.((......((((.(.((((((((((....)))))))))..).).)))).)).)..)))))))).).))))....)))))).))))))))))).(.(((((((((((..((.(.....).))..)))))))))....))..).........)))))).....................)))))))))))))\r"
expect -exact "(((((((((((((((((((((.(((((((((.....))))))))).))..........((((........((((((((((....)))))((((((...))))))((...((((.(.(....(.(.(((((((((((..(.((......((((.(.((((((((((....)))))))))..).).)))).)).)..)))))))).).))))....)))))).))))))))))).(.(((((((((((..((.(.....).))..)))))))))....))..).........)))))).....................)))))))))))))\r
length = 330\r
External loop : 0\r
Interior loop ( 1,330) GC; ( 2,329) GC: -330\r
Interior loop ( 2,329) GC; ( 3,328) CG: -340\r
Interior loop ( 3,328) CG; ( 4,327) GC: -240\r
Interior loop ( 4,327) GC; ( 5,326) GC: -330\r
Interior loop ( 5,326) GC; ( 6,325) CG: -340\r
Interior loop ( 6,325) CG; ( 7,324) GC: -240\r
Interior loop ( 7,324) GC; ( 8,323) CG: -340\r
Interior loop ( 8,323) CG; ( 9,322) CG: -330\r
Interior loop ( 9,322) CG; ( 10,321) GC: -240\r
Interior loop ( 10,321) GC; ( 11,320) GC: -330\r
Interior loop ( 11,320) GC; ( 12,319) CG: -340\r
Interior loop ( 12,319) CG; ( 13,318) CG: -330\r
Interior loop ( 13,318) CG; ( 14,296) GC: 571\r
Interior loop ( 14,296) GC; ( 15,295) GC: -330\r
Interior loop ( 15,295) GC; ( 16,294) CG: -340\r
Interior loop ( 16,294) CG; ( 17,293) GC: -240\r
Interior loop ( 17,293) GC; ( 18,292) GC: -330\r
Interior loop ( 18,292) GC; ( 19,291) CG: -340\r
Interior loop ( 20, 48) CG; ( 21, 47) CG: -330\r
Interior loop ( 21, 47) CG; ( 23, 45) CG: 40\r
Interior loop ( 23, 45) CG; ( 24, 44) GU: -140\r
Interior loop ( 24, 44) GU; ( 25, 43) GC: -210\r
Interior loop ( 25, 43) GC; ( 26, 42) CG: -340\r
Interior loop ( 26, 42) CG; ( 27, 41) CG: -330\r
Interior loop ( 27, 41) CG; ( 28, 40) CG: -330\r
Interior loop ( 28, 40) CG; ( 29, 39) CG: -330\r
Interior loop ( 29, 39) CG; ( 30, 38) CG: -330\r
Interior loop ( 30, 38) CG; ( 31, 37) CG: -330\r
Hairpin loop ( 31, 37) CG : 410\r
Interior loop ( 59,232) CG; ( 60,231) UA: -210\r
Interior loop ( 60,231) UA; ( 61,230) CG: -240\r
Interior loop ( 61,230) CG; ( 62,229) CG: -330\r
Interior loop ( 62,229) CG; ( 71,228) GC: 470\r
Interior loop ( 71,228) GC; ( 72,227) CG: -340\r
Interior loop ( 72,227) CG; ( 73,226) CG: -330\r
Interior loop ( 73,226) CG; ( 74,225) GC: -240\r
Interior loop ( 74,225) GC; ( 75,224) GC: -330\r
Interior loop ( 76, 89) GC; ( 77, 88) CG: -340\r
Interior loop ( 77, 88) CG; ( 78, 87) CG: -330\r
Interior loop ( 78, 87) CG; ( 79, 86) CG: -330\r
Interior loop ( 79, 86) CG; ( 80, 85) CG: -330\r
Hairpin loop ( 80, 85) CG : 40\r
Interior loop ( 90,104) AU; ( 91,103) CG: -220\r
Interior loop ( 91,103) CG; ( 92,102) GC: -240\r
Interior loop ( 92,102) GC; ( 93,101) GC: -330\r
Interior loop ( 93,101) GC; ( 94,100) GC: -330\r
Interior loop ( 94,100) GC; ( 95, 99) UA: -220\r
Hairpin loop ( 95, 99) UA : 620\r
Interior loop (105,223) GC; (106,222) GC: -330\r
Interior loop (106,222) GC; (110,220) CG: 270\r
Interior loop (110,220) CG; (111,219) GC: -240\r
Interior loop (111,219) GC; (112,218) GC: -330\r
Interior loop (112,218) GC; (113,217) CG: -340\r
Interior loop (113,217) CG; (115,216) CG: 50\r
Interior loop (115,216) CG; (117,215) GC: 140\r
Interior loop (117,215) GC; (122,210) GU: 300\r
Interior loop (122,210) GU; (124,209) CG: 130\r
Interior loop (124,209) CG; (126,208) CG: 50\r
Interior loop (126,208) CG; (127,207) GC: -240\r
Interior loop (127,207) GC; (128,205) GU: 230\r
Interior loop (128,205) GU; (129,203) CG: 130\r
Interior loop (129,203) CG; (130,202) CG: -330\r
Interior loop (130,202) CG; (131,201) CG: -330\r
Interior loop (131,201) CG; (132,200) CG: -330\r
Interior loop (132,200) CG; (133,199) GC: -240\r
Interior loop (133,199) GC; (134,198) GC: -330\r
Interior loop (134,198) GC; (135,197) GC: -330\r
Interior loop (135,197) GC; (136,196) GC: -330\r
Interior loop (136,196) GC; (139,193) UG: 60\r
Interior loop (139,193) UG; (141,191) UA: -40\r
Interior loop (141,191) UA; (142,190) CG: -240\r
Interior loop (142,190) CG; (149,188) GC: 360\r
Interior loop (149,188) GC; (150,187) CG: -340\r
Interior loop (150,187) CG; (151,186) GC: -240\r
Interior loop (151,186) GC; (152,185) GC: -330\r
Interior loop (152,185) GC; (154,183) UA: 110\r
Interior loop (154,183) UA; (156,181) GC: 110\r
Interior loop (156,181) GC; (157,178) GC: 280\r
Interior loop (157,178) GC; (158,177) CG: -340\r
Interior loop (158,177) CG; (159,176) CG: -330\r
Interior loop (159,176) CG; (160,175) GC: -240\r
Interior loop (160,175) GC; (161,174) CG: -340\r
Interior loop (161,174) CG; (162,173) CG: -330\r
Interior loop (162,173) CG; (163,172) CG: -330\r
Interior loop (163,172) CG; (164,171) UA: -210\r
Interior loop (164,171) UA; (165,170) GC: -210\r
Hairpin loop (165,170) GC : 70\r
Multi loop ( 75,224) GC : 40\r
Interior loop (234,281) AU; (236,278) GC: 140\r
Interior loop (236,278) GC; (237,277) GC: -330\r
Interior loop (237,277) GC; (238,272) CG: 360\r
Interior loop (238,272) CG; (239,271) CG: -330\r
Interior loop (239,271) CG; (240,270) CG: -330\r
Interior loop (240,270) CG; (241,269) CG: -330\r
Interior loop (241,269) CG; (242,268) CG: -330\r
Interior loop (24