0
|
1 |
#!/usr/bin/expect -f
|
|
2 |
#======================================================================
|
|
3 |
# R E S E T 1
|
|
4 |
# doc: Mon Mar 8 02:57:35 2004
|
|
5 |
# dlm: Wed Nov 19 15:17:32 2008
|
|
6 |
# (c) 2004 A.M. Thurnherr
|
|
7 |
# uE-Info: 21 14 NIL 0 0 72 2 2 4 NIL ofnI
|
|
8 |
#======================================================================
|
|
9 |
|
|
10 |
# HISTORY:
|
|
11 |
# Mar 8, 2004: - created
|
|
12 |
# Nov 19, 2008: - added version
|
|
13 |
|
|
14 |
|
|
15 |
log_user 0;
|
|
16 |
|
|
17 |
regsub {dir1} [exec which dir1] {libBB.expect} path;
|
|
18 |
source $path;
|
|
19 |
source DEFAULTS.expect;
|
|
20 |
|
|
21 |
print_version;
|
|
22 |
|
|
23 |
set_color;
|
|
24 |
send_user "Connecting to instrument...";
|
|
25 |
spawn bbabble -ms $tty0;
|
|
26 |
wait_for_startup;
|
|
27 |
reset_instrument;
|
|
28 |
|
|
29 |
send_user "\nPutting instrument to sleep..."
|
|
30 |
put_to_sleep;
|
|
31 |
|
|
32 |
send_user "\nDone\n"
|