.
#!/usr/bin/expect -f
#======================================================================
# R E S E T 2
# doc: Mon Mar 8 02:57:35 2004
# dlm: Wed Nov 19 15:17:48 2008
# (c) 2004 A.M. Thurnherr
# uE-Info: 11 26 NIL 0 0 72 2 2 4 NIL ofnI
#======================================================================
# HISTORY:
# Mar 8, 2004: - created
# Nov 19, 2008: - added version
log_user 0;
regsub {dir1} [exec which dir1] {libBB.expect} path;
source $path;
source DEFAULTS.expect;
set_color;
send_user "Connecting to instruments..."
spawn bbabble -ms $tty0 $tty1
wait_for_startup;
reset_two_instruments;
send_user "\nPutting instruments to sleep..."
select_master 0; put_to_sleep; select_slave; put_to_sleep;
send_user "\nDone\n"