2
===================================================================
3
RCS file: /usr/local/cvs/debian/expect/example/archie,v
4
retrieving revision 1.3
6
--- example/archie 17 Aug 2004 07:09:41 -0000 1.3
7
+++ example/archie 17 Aug 2004 08:30:40 -0000
14
Index: example/autoexpect
15
===================================================================
16
RCS file: /usr/local/cvs/debian/expect/example/autoexpect,v
17
retrieving revision 1.3
18
diff -u -r1.3 autoexpect
19
--- example/autoexpect 17 Aug 2004 07:09:41 -0000 1.3
20
+++ example/autoexpect 17 Aug 2004 08:30:40 -0000
24
# Name: autoexpect - generate an Expect script from watching a session
27
Index: example/autopasswd
28
===================================================================
29
RCS file: /usr/local/cvs/debian/expect/example/autopasswd,v
30
retrieving revision 1.4
31
diff -u -r1.4 autopasswd
32
--- example/autopasswd 17 Aug 2004 07:09:41 -0000 1.4
33
+++ example/autopasswd 17 Aug 2004 08:30:40 -0000
37
# wrapper to make passwd(1) be non-interactive
38
# username is passed as 1st arg, passwd as 2nd
40
Index: example/beer.exp
41
===================================================================
42
RCS file: /usr/local/cvs/debian/expect/example/beer.exp,v
43
retrieving revision 1.3
44
diff -u -r1.3 beer.exp
45
--- example/beer.exp 17 Aug 2004 07:09:41 -0000 1.3
46
+++ example/beer.exp 17 Aug 2004 08:30:40 -0000
48
-#!/depot/path/expect -f
49
+#!/usr/bin/expectk -f
51
# 99 bottles of beer on the wall, Expect-style
52
# Author: Don Libes <libes@nist.gov>
53
Index: example/chess.exp
54
===================================================================
55
RCS file: /usr/local/cvs/debian/expect/example/chess.exp,v
56
retrieving revision 1.3
57
diff -u -r1.3 chess.exp
58
--- example/chess.exp 17 Aug 2004 07:09:41 -0000 1.3
59
+++ example/chess.exp 17 Aug 2004 08:30:40 -0000
63
# expect script to connect two UNIX chess programs together.
64
# written by Don Libes - May 9, 1990
66
Index: example/cryptdir
67
===================================================================
68
RCS file: /usr/local/cvs/debian/expect/example/cryptdir,v
69
retrieving revision 1.5
70
diff -u -r1.5 cryptdir
71
--- example/cryptdir 17 Aug 2004 08:26:38 -0000 1.5
72
+++ example/cryptdir 17 Aug 2004 08:30:40 -0000
77
# Author: Don Libes, NIST
79
Index: example/decryptdir
80
===================================================================
81
RCS file: /usr/local/cvs/debian/expect/example/decryptdir,v
82
retrieving revision 1.5
83
diff -u -r1.5 decryptdir
84
--- example/decryptdir 17 Aug 2004 08:26:38 -0000 1.5
85
+++ example/decryptdir 17 Aug 2004 08:30:40 -0000
90
# Author: Don Libes, NIST
92
Index: example/dislocate
93
===================================================================
94
RCS file: /usr/local/cvs/debian/expect/example/dislocate,v
95
retrieving revision 1.3
96
diff -u -r1.3 dislocate
97
--- example/dislocate 17 Aug 2004 07:09:41 -0000 1.3
98
+++ example/dislocate 17 Aug 2004 08:30:40 -0000
101
+#!/usr/bin/expect --
102
# dislocate - allow disconnection and reconnection to a background program
103
# Author: Don Libes, NIST
105
Index: example/dvorak
106
===================================================================
107
RCS file: /usr/local/cvs/debian/expect/example/dvorak,v
108
retrieving revision 1.3
110
--- example/dvorak 17 Aug 2004 07:09:41 -0000 1.3
111
+++ example/dvorak 17 Aug 2004 08:30:40 -0000
114
+#!/usr/bin/expect -f
115
# simulate a dvorak keyboard
116
# Actually just the lowercase letters are mapped to show the basic idea.
117
# Really, uppercase and control should probably be mapped too.
118
Index: example/expectd.proto
119
===================================================================
120
RCS file: /usr/local/cvs/debian/expect/example/expectd.proto,v
121
retrieving revision 1.3
122
diff -u -r1.3 expectd.proto
123
--- example/expectd.proto 17 Aug 2004 07:09:42 -0000 1.3
124
+++ example/expectd.proto 17 Aug 2004 08:30:40 -0000
126
-#!/depot/tcl/src/expect/e --
127
+#!/usr/bin/expectk -f
128
# Description: Simple fragment to begin a telnet daemon
129
# For more information, see Chapter 17 of "Exploring Expect"
130
# Author: Don Libes, NIST
131
Index: example/ftp-inband
132
===================================================================
133
RCS file: /usr/local/cvs/debian/expect/example/ftp-inband,v
134
retrieving revision 1.3
135
diff -u -r1.3 ftp-inband
136
--- example/ftp-inband 17 Aug 2004 07:09:42 -0000 1.3
137
+++ example/ftp-inband 17 Aug 2004 08:30:40 -0000
140
+#!/usr/bin/expect -f
141
# ftp-inband - copy files over a telnet/rlogin/etc link
142
# Author: Don Libes, NIST
144
Index: example/ftp-rfc
145
===================================================================
146
RCS file: /usr/local/cvs/debian/expect/example/ftp-rfc,v
147
retrieving revision 1.3
148
diff -u -r1.3 ftp-rfc
149
--- example/ftp-rfc 17 Aug 2004 07:09:42 -0000 1.3
150
+++ example/ftp-rfc 17 Aug 2004 08:30:40 -0000
153
+#!/usr/bin/expect --
155
# ftp-rfc <rfc-number>
157
Index: example/gethostbyaddr
158
===================================================================
159
RCS file: /usr/local/cvs/debian/expect/example/gethostbyaddr,v
160
retrieving revision 1.3
161
diff -u -r1.3 gethostbyaddr
162
--- example/gethostbyaddr 17 Aug 2004 07:09:42 -0000 1.3
163
+++ example/gethostbyaddr 17 Aug 2004 08:30:40 -0000
166
+#!/usr/bin/expect --
168
# gethostbyaddr a.b.c.d - translate an internet address to a FQDN,
169
# guessing (a lot) if necessary.
171
===================================================================
172
RCS file: /usr/local/cvs/debian/expect/example/irsh,v
173
retrieving revision 1.3
175
--- example/irsh 17 Aug 2004 07:09:42 -0000 1.3
176
+++ example/irsh 17 Aug 2004 08:30:40 -0000
178
-#!/depot/path/expect --
179
+#!/usr/bin/expectk -f
181
# Do rsh interactively. For example, consider the following command:
182
# rsh <remote> ls -l "|" more
183
Index: example/kibitz
184
===================================================================
185
RCS file: /usr/local/cvs/debian/expect/example/kibitz,v
186
retrieving revision 1.4
188
--- example/kibitz 17 Aug 2004 07:20:43 -0000 1.4
189
+++ example/kibitz 17 Aug 2004 08:30:40 -0000
192
+#!/usr/bin/expect --
193
# allow another user to share a shell (or other program) with you
194
# See kibitz(1) man page for complete info.
195
# Author: Don Libes, NIST
196
Index: example/lpunlock
197
===================================================================
198
RCS file: /usr/local/cvs/debian/expect/example/lpunlock,v
199
retrieving revision 1.3
200
diff -u -r1.3 lpunlock
201
--- example/lpunlock 17 Aug 2004 07:09:42 -0000 1.3
202
+++ example/lpunlock 17 Aug 2004 08:30:40 -0000
205
+#!/usr/bin/expect -f
207
# This script unhangs a printer which claims it is "waiting for lock".
208
# Written by Don Libes. Based on English instructions from Scott Paisley.
209
Index: example/mkpasswd
210
===================================================================
211
RCS file: /usr/local/cvs/debian/expect/example/mkpasswd,v
212
retrieving revision 1.3
213
diff -u -r1.3 mkpasswd
214
--- example/mkpasswd 17 Aug 2004 07:09:42 -0000 1.3
215
+++ example/mkpasswd 17 Aug 2004 08:30:40 -0000
217
-#!/depot/path/expect --
218
+#!/usr/bin/expectk -f
219
# mkpasswd - make a password, if username given, set it.
220
# Author: Don Libes, NIST
222
Index: example/multixterm
223
===================================================================
224
RCS file: /usr/local/cvs/debian/expect/example/multixterm,v
225
retrieving revision 1.4
226
diff -u -r1.4 multixterm
227
--- example/multixterm 17 Aug 2004 07:20:43 -0000 1.4
228
+++ example/multixterm 17 Aug 2004 08:30:40 -0000
230
-#!/depot/path/expectk
231
+#!/usr/bin/expectk -f
234
# multixterm - drive multiple xterms separately or together
235
Index: example/passmass
236
===================================================================
237
RCS file: /usr/local/cvs/debian/expect/example/passmass,v
238
retrieving revision 1.3
239
diff -u -r1.3 passmass
240
--- example/passmass 17 Aug 2004 07:09:42 -0000 1.3
241
+++ example/passmass 17 Aug 2004 08:30:40 -0000
244
+#!/usr/bin/expect --
245
# passmass: change password on many machines
246
# Synopsis: passmass host1 host2 host3 ....
247
# Don Libes - March 11, 1991
248
Index: example/passwd.cgi
249
===================================================================
250
RCS file: /usr/local/cvs/debian/expect/example/passwd.cgi,v
251
retrieving revision 1.3
252
diff -u -r1.3 passwd.cgi
253
--- example/passwd.cgi 17 Aug 2004 07:09:42 -0000 1.3
254
+++ example/passwd.cgi 17 Aug 2004 08:30:40 -0000
256
-#!/depot/path/expect --
257
+#!/usr/bin/expectk -f
259
# This is a CGI script to process requests created by the accompanying
260
# passwd.html form. This script is pretty basic, although it is
261
Index: example/passwdprompt
262
===================================================================
263
RCS file: /usr/local/cvs/debian/expect/example/passwdprompt,v
264
retrieving revision 1.3
265
diff -u -r1.3 passwdprompt
266
--- example/passwdprompt 17 Aug 2004 07:09:42 -0000 1.3
267
+++ example/passwdprompt 17 Aug 2004 08:30:40 -0000
269
-#!/depot/path/expect
270
+#!/usr/bin/expectk -f
272
# This script prompts for a passwd from stdin while echoing *'s
274
Index: example/read1char
275
===================================================================
276
RCS file: /usr/local/cvs/debian/expect/example/read1char,v
277
retrieving revision 1.3
278
diff -u -r1.3 read1char
279
--- example/read1char 17 Aug 2004 07:09:42 -0000 1.3
280
+++ example/read1char 17 Aug 2004 08:30:40 -0000
283
+#!/usr/bin/expect --
285
# read a single character
286
# Author: Don Libes, NIST
287
Index: example/reprompt
288
===================================================================
289
RCS file: /usr/local/cvs/debian/expect/example/reprompt,v
290
retrieving revision 1.3
291
diff -u -r1.3 reprompt
292
--- example/reprompt 17 Aug 2004 07:09:42 -0000 1.3
293
+++ example/reprompt 17 Aug 2004 08:30:40 -0000
295
-#!/depot/path/expect --
296
+#!/usr/bin/expectk -f
299
# Description: reprompt every so often until user enters something
301
===================================================================
302
RCS file: /usr/local/cvs/debian/expect/example/rftp,v
303
retrieving revision 1.4
305
--- example/rftp 17 Aug 2004 07:09:42 -0000 1.4
306
+++ example/rftp 17 Aug 2004 08:30:40 -0000
309
+#!/usr/bin/expect -f
310
# rftp - ftp a directory hierarchy (i.e. recursive ftp)
313
Index: example/rlogin-cwd
314
===================================================================
315
RCS file: /usr/local/cvs/debian/expect/example/rlogin-cwd,v
316
retrieving revision 1.3
317
diff -u -r1.3 rlogin-cwd
318
--- example/rlogin-cwd 17 Aug 2004 07:09:42 -0000 1.3
319
+++ example/rlogin-cwd 17 Aug 2004 08:30:40 -0000
322
+#!/usr/bin/expect --
323
# rlogin-cwd - rlogin but with same directory
325
# You can extend this idea to save any arbitrary information across rlogin
326
Index: example/robohunt
327
===================================================================
328
RCS file: /usr/local/cvs/debian/expect/example/robohunt,v
329
retrieving revision 1.3
330
diff -u -r1.3 robohunt
331
--- example/robohunt 17 Aug 2004 07:09:42 -0000 1.3
332
+++ example/robohunt 17 Aug 2004 08:30:40 -0000
335
+#!/usr/bin/expect -f
337
# robohunt player-name [-nodisplay]
339
Index: example/rogue.exp
340
===================================================================
341
RCS file: /usr/local/cvs/debian/expect/example/rogue.exp,v
342
retrieving revision 1.3
343
diff -u -r1.3 rogue.exp
344
--- example/rogue.exp 17 Aug 2004 07:09:42 -0000 1.3
345
+++ example/rogue.exp 17 Aug 2004 08:30:40 -0000
348
+#!/usr/bin/expect -f
349
# Look for a GREAT game of rogue.
350
# Idea is that any game with a Strength of 18 is unusually good.
351
# Written by Don Libes - March, 1990
352
Index: example/telnet-cwd
353
===================================================================
354
RCS file: /usr/local/cvs/debian/expect/example/telnet-cwd,v
355
retrieving revision 1.3
356
diff -u -r1.3 telnet-cwd
357
--- example/telnet-cwd 17 Aug 2004 07:09:42 -0000 1.3
358
+++ example/telnet-cwd 17 Aug 2004 08:30:40 -0000
361
+#!/usr/bin/expect --
362
# telnet-cwd - telnet but with same directory
364
# You can extend this idea to save any arbitrary information across telnet
365
Index: example/term_expect
366
===================================================================
367
RCS file: /usr/local/cvs/debian/expect/example/term_expect,v
368
retrieving revision 1.3
369
diff -u -r1.3 term_expect
370
--- example/term_expect 17 Aug 2004 07:09:42 -0000 1.3
371
+++ example/term_expect 17 Aug 2004 08:30:40 -0000
373
-#!/depot/path/expectk
374
+#!/usr/bin/expectk -f
376
# Name: tkterm - terminal emulator using Expect and Tk text widget, v3.0
377
# Author: Don Libes, July '94
378
Index: example/timed-read
379
===================================================================
380
RCS file: /usr/local/cvs/debian/expect/example/timed-read,v
381
retrieving revision 1.3
382
diff -u -r1.3 timed-read
383
--- example/timed-read 17 Aug 2004 07:09:42 -0000 1.3
384
+++ example/timed-read 17 Aug 2004 08:30:40 -0000
387
+#!/usr/bin/expect -f
388
# read a complete line from stdin
389
# aborting after the number of seconds (given as an argument)
391
Index: example/timed-run
392
===================================================================
393
RCS file: /usr/local/cvs/debian/expect/example/timed-run,v
394
retrieving revision 1.3
395
diff -u -r1.3 timed-run
396
--- example/timed-run 17 Aug 2004 07:09:42 -0000 1.3
397
+++ example/timed-run 17 Aug 2004 08:30:40 -0000
400
+#!/usr/bin/expect -f
401
# run a program for a given amount of time
402
# i.e. time 20 long_running_program
404
Index: example/tknewsbiff
405
===================================================================
406
RCS file: /usr/local/cvs/debian/expect/example/tknewsbiff,v
407
retrieving revision 1.3
408
diff -u -r1.3 tknewsbiff
409
--- example/tknewsbiff 17 Aug 2004 07:09:42 -0000 1.3
410
+++ example/tknewsbiff 17 Aug 2004 08:30:40 -0000
412
-#!/depot/path/expectk
413
+#!/usr/bin/expectk -f
417
Index: example/tkpasswd
418
===================================================================
419
RCS file: /usr/local/cvs/debian/expect/example/tkpasswd,v
420
retrieving revision 1.3
421
diff -u -r1.3 tkpasswd
422
--- example/tkpasswd 17 Aug 2004 07:09:42 -0000 1.3
423
+++ example/tkpasswd 17 Aug 2004 08:30:40 -0000
425
-#!/depot/path/expectk -f
426
+#!/usr/bin/expectk -f
427
# tkpasswd - Change passwords using Expectk
428
# Author: Don Libes, NIST, October 1, 1993
429
# Version: 1.8 - Added support for Tk 4.1
430
Index: example/tkterm
431
===================================================================
432
RCS file: /usr/local/cvs/debian/expect/example/tkterm,v
433
retrieving revision 1.5
435
--- example/tkterm 17 Aug 2004 07:09:42 -0000 1.5
436
+++ example/tkterm 17 Aug 2004 08:30:40 -0000
438
-#!/depot/path/expectk
439
+#!/usr/bin/expectk -f
441
# Name: tkterm - terminal emulator using Expect and Tk text widget, v3.0
442
# Author: Don Libes, July '94
443
Index: example/unbuffer
444
===================================================================
445
RCS file: /usr/local/cvs/debian/expect/example/unbuffer,v
446
retrieving revision 1.5
447
diff -u -r1.5 unbuffer
448
--- example/unbuffer 17 Aug 2004 07:09:42 -0000 1.5
449
+++ example/unbuffer 17 Aug 2004 08:30:40 -0000
452
+#!/usr/bin/expect --
453
# Description: unbuffer stdout of a program
454
# Author: Don Libes, NIST
456
Index: example/virterm
457
===================================================================
458
RCS file: /usr/local/cvs/debian/expect/example/virterm,v
459
retrieving revision 1.3
460
diff -u -r1.3 virterm
461
--- example/virterm 17 Aug 2004 07:09:42 -0000 1.3
462
+++ example/virterm 17 Aug 2004 08:30:40 -0000
465
+#!/usr/bin/expect --
467
# Name: virterm - terminal emulator using Expect, v1.0, December, 1994
468
# Author: Adrian Mariano <adrian@cam.cornell.edu>
470
===================================================================
471
RCS file: /usr/local/cvs/debian/expect/example/vrfy,v
472
retrieving revision 1.3
474
--- example/vrfy 17 Aug 2004 07:09:42 -0000 1.3
475
+++ example/vrfy 17 Aug 2004 08:30:40 -0000
477
-#!/depot/path/expect -f
478
+#!/usr/bin/expectk -f
481
# separate address into user and host
482
Index: example/weather
483
===================================================================
484
RCS file: /usr/local/cvs/debian/expect/example/weather,v
485
retrieving revision 1.6
486
diff -u -r1.6 weather
487
--- example/weather 17 Aug 2004 07:09:42 -0000 1.6
488
+++ example/weather 17 Aug 2004 08:30:40 -0000
491
+#!/usr/bin/expect -f
493
# weather - Expect script to get the weather (courtesy University of Michigan)
495
Index: example/xkibitz
496
===================================================================
497
RCS file: /usr/local/cvs/debian/expect/example/xkibitz,v
498
retrieving revision 1.3
499
diff -u -r1.3 xkibitz
500
--- example/xkibitz 17 Aug 2004 07:09:42 -0000 1.3
501
+++ example/xkibitz 17 Aug 2004 08:30:40 -0000
504
+#!/usr/bin/expect --
506
# share an xterm with other users
507
# See xkibitz(1) man page for complete info.
508
Index: example/xpstat
509
===================================================================
510
RCS file: /usr/local/cvs/debian/expect/example/xpstat,v
511
retrieving revision 1.3
513
--- example/xpstat 17 Aug 2004 07:09:42 -0000 1.3
514
+++ example/xpstat 17 Aug 2004 08:30:40 -0000
516
-#!/depot/path/expectk
517
+#!/usr/bin/expectk --
519
# This script acts as a front-end for xpilot. Run it in the background,
520
# and it will pop up a window for each server it finds running. After
521
Index: example/xrlogin
522
===================================================================
523
RCS file: /usr/local/cvs/debian/expect/example/xrlogin,v
524
retrieving revision 1.3
525
diff -u -r1.3 xrlogin
526
--- example/xrlogin 17 Aug 2004 07:09:42 -0000 1.3
527
+++ example/xrlogin 17 Aug 2004 08:30:40 -0000
529
-#!/depot/path/expect --
530
+#!/usr/bin/expectk -f
531
# xrlogin - rlogin but with current DISPLAY
533
# You can extend this idea to save any arbitrary information across rlogin