author | A.M. Thurnherr <ant@ldeo.columbia.edu> |
Tue, 14 Sep 2010 13:34:39 -0400 | |
changeset 4 | fda11de1826e |
parent 0 | 648bde652211 |
permissions | -rwxr-xr-x |
0 | 1 |
#!/usr/bin/expect -f |
2 |
#====================================================================== |
|
3 |
# D I R 1 |
|
4 |
# doc: Mon Mar 8 02:57:35 2004 |
|
4
fda11de1826e
version left on Poseidon at end of P403
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
0
diff
changeset
|
5 |
# dlm: Thu Aug 26 00:28:15 2010 |
0 | 6 |
# (c) 2004 A.M. Thurnherr |
4
fda11de1826e
version left on Poseidon at end of P403
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
0
diff
changeset
|
7 |
# uE-Info: 14 1 NIL 0 0 72 2 2 8 NIL ofnI |
0 | 8 |
#====================================================================== |
9 |
||
10 |
# HISTORY: |
|
11 |
# Mar 8, 2004: - created |
|
12 |
# Nov 19, 2008: - added version |
|
4
fda11de1826e
version left on Poseidon at end of P403
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
0
diff
changeset
|
13 |
# Aug 25, 2010: - DEFAULTS.expect -> CRUISE_SETUP.expect |
fda11de1826e
version left on Poseidon at end of P403
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
0
diff
changeset
|
14 |
# - libBB.expect -> libRDI.expect |
0 | 15 |
|
16 |
log_user 0; |
|
17 |
||
4
fda11de1826e
version left on Poseidon at end of P403
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
0
diff
changeset
|
18 |
regsub {dir1} [exec which dir1] {libRDI.expect} path; |
0 | 19 |
source $path; |
4
fda11de1826e
version left on Poseidon at end of P403
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
0
diff
changeset
|
20 |
source CRUISE_SETUP.expect; |
0 | 21 |
|
22 |
print_version; |
|
23 |
||
24 |
set_color; |
|
25 |
send_user "Connecting to instrument..." |
|
26 |
spawn bbabble -ms $tty0; |
|
27 |
||
28 |
wait_for_startup; |
|
29 |
reset_instrument; |
|
30 |
||
31 |
send_user "\n"; list_dir; |
|
32 |
||
33 |
send_user "Putting instrument to sleep..." |
|
34 |
put_to_sleep; |
|
35 |
||
36 |
send_user "\nDone\n" |