author | A.M. Thurnherr <ant@ldeo.columbia.edu> |
Fri, 07 Jan 2011 23:25:51 +0000 | |
changeset 10 | 5873914adea7 |
parent 4 | fda11de1826e |
child 12 | 5e67754f6457 |
permissions | -rwxr-xr-x |
0 | 1 |
#!/usr/bin/expect -f |
2 |
#====================================================================== |
|
3 |
# R E S E T 2 |
|
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:29:29 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: 18 39 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 |
set_color; |
|
23 |
send_user "Connecting to instruments..." |
|
24 |
spawn bbabble -ms $tty0 $tty1 |
|
25 |
wait_for_startup; |
|
26 |
reset_two_instruments; |
|
27 |
||
28 |
send_user "\nPutting instruments to sleep..." |
|
29 |
select_master 0; put_to_sleep; select_slave; put_to_sleep; |
|
30 |
||
31 |
send_user "\nDone\n" |