ladcp1
changeset 4 fda11de1826e
parent 0 648bde652211
child 5 f41d45fe7ae9
equal deleted inserted replaced
3:99a41e0476b1 4:fda11de1826e
     1 #!/usr/bin/expect -f
     1 #!/usr/bin/expect -f
     2 #======================================================================
     2 #======================================================================
     3 #                    L A D C P 1 
     3 #                    L A D C P 1 
     4 #                    doc: Wed Mar 10 22:23:52 2004
     4 #                    doc: Wed Mar 10 22:23:52 2004
     5 #                    dlm: Wed Nov 19 15:15:57 2008
     5 #                    dlm: Thu Aug 26 00:27:08 2010
     6 #                    (c) 2004 A.M. Thurnherr
     6 #                    (c) 2004 A.M. Thurnherr
     7 #                    uE-Info: 28 14 NIL 0 0 72 2 2 8 NIL ofnI
     7 #                    uE-Info: 27 39 NIL 0 0 72 2 2 8 NIL ofnI
     8 #======================================================================
     8 #======================================================================
     9 
     9 
    10 # HISTORY:
    10 # HISTORY:
    11 #  Apr  4, 2004: - adapted from [ladcp2]
    11 #  Apr  4, 2004: - adapted from [ladcp2]
    12 #  Jun 17, 2004: - BUG: bombed on station #008 (octal digit)
    12 #  Jun 17, 2004: - BUG: bombed on station #008 (octal digit)
    13 #  Feb 14, 2006: - BUG: log files were written to bin dir
    13 #  Feb 14, 2006: - BUG: log files were written to bin dir
    14 #  Oct 28, 2006: - adapted to old version of expect
    14 #  Oct 28, 2006: - adapted to old version of expect
    15 #  Oct 31, 2007: - BUG: wrong default on non-empty memory
    15 #  Oct 31, 2007: - BUG: wrong default on non-empty memory
    16 #  Nov 19, 2008: - adapted to new firmware behavior (load_factory_defaults)
    16 #  Nov 19, 2008: - adapted to new firmware behavior (load_factory_defaults)
    17 #  Nov 19, 2008: - added version
    17 #  Nov 19, 2008: - added version
       
    18 #  Aug 25, 2010: - DEFAULTS.expect -> CRUISE_SETUP.expect
       
    19 #		 - libBB.expect -> libRDI.expect
    18 
    20 
    19 #----------------------------------------------------------------------
    21 #----------------------------------------------------------------------
    20 # Setup
    22 # Setup
    21 #----------------------------------------------------------------------
    23 #----------------------------------------------------------------------
    22 
    24 
    23 log_user 0;
    25 log_user 0;
    24 source DEFAULTS.expect;
    26 source CRUISE_SETUP.expect;
    25 regsub {dir1} [exec which dir1] {libBB.expect} path;
    27 regsub {dir1} [exec which dir1] {libRDI.expect} path;
    26 source $path;
    28 source $path;
    27 
    29 
    28 print_version;
    30 print_version;
    29 
    31 
    30 if {$argc == 0} {
    32 if {$argc == 0} {