reset2
changeset 0 648bde652211
child 4 fda11de1826e
equal deleted inserted replaced
-1:000000000000 0:648bde652211
       
     1 #!/usr/bin/expect -f
       
     2 #======================================================================
       
     3 #                    R E S E T 2 
       
     4 #                    doc: Mon Mar  8 02:57:35 2004
       
     5 #                    dlm: Wed Nov 19 15:17:48 2008
       
     6 #                    (c) 2004 A.M. Thurnherr
       
     7 #                    uE-Info: 11 26 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 set_color;
       
    22 send_user "Connecting to instruments..."
       
    23 spawn bbabble -ms $tty0 $tty1
       
    24 wait_for_startup;
       
    25 reset_two_instruments;
       
    26 
       
    27 send_user "\nPutting instruments to sleep..."
       
    28 select_master 0; put_to_sleep; select_slave; put_to_sleep;
       
    29 
       
    30 send_user "\nDone\n"