IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28581


Ignore:
Timestamp:
Jul 1, 2010, 3:16:35 PM (16 years ago)
Author:
watersc1
Message:

Update to automation cleanups to queue magic destreak cleanups.

Added -l option to neb-ls which passes the files to ls -al to look at permissions and sizes.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/bin/neb-ls

    r28525 r28581  
    1717    $server,
    1818    $path,
     19    $ls,
    1920    $column,
    2021);
     
    2627    'server|s=s'    => \$server,
    2728    'path|p'        => \$path,
     29    'l'             => \$ls,
    2830    'column|c'      => \$column,
    2931) || pod2usage( 2 );
     
    6163    @{ $keys } = @files;
    6264}
     65if ($ls) {
     66    my @files;
     67    foreach my $key (@{ $keys }) {
     68        my $uris = `ls -al $key`;
     69        chomp($uris);
     70        if (defined $uris) {
     71            push @files, $uris;
     72        }
     73    }
     74    @{ $keys } = @files;
     75}   
    6376if ($keys) {
    6477    if ($column) {
  • trunk/ippScripts/scripts/automate_stacks.pl

    r28554 r28581  
    2121my $stacktool= can_run('stacktool') or (warn "Can't find stacktool" and $missing_tools = 1);
    2222my $difftool = can_run('difftool') or (warn "Can't find difftool" and $missing_tools = 1);
     23my $magicdstool = can_run('magicdstool') or (warn "Can't find magicdstool" and $missing_tools = 1);
    2324my $dettool = can_run('dettool') or (warn "Can't find dettool" and $missing_tools = 1);
    2425my $ppConfigDump = can_run('ppConfigDump') or (warn "Can't find ppConfigDump" and $missing_tools = 1);
     
    10231024    my ($label,$workdir,$obs_mode,$object,$comment,$tess_id,$dist_group,$data_group,$reduction) = get_tool_parameters($cleaning_date,$target);
    10241025    my $args = $command;
    1025     if ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode})) {
     1026    if ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode} eq 'A')) {
    10261027        $args .= " -dbname $dbname -updaterun -set_state goto_cleaned -full -set_label goto_cleaned -time_stamp_end $cleaning_date ";
     1028    }
     1029    elsif ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode} eq 'B')) {
     1030        $args .= " -dbname $dbname -updaterun -set_state goto_cleaned -state full -set_label goto_cleaned -label $label ";
    10271031    }
    10281032    else {
     
    10401044
    10411045    foreach my $mode (sort (keys (%clean_commands))) {
    1042         if ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode})) {
     1046        if ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode} eq 'A')) {
    10431047            my ($cleaning_date,$command) = construct_cleantool_args($date,"",$mode);
    10441048            if ($cleaning_date eq 'no clean') {
  • trunk/ippconfig/recipes/nightly_science.config

    r28427 r28581  
    66  COMMAND STR chiptool
    77  RETENTION_TIME U16 30
    8   ALTERNATE_CMD BOOL F
    98END
    109CLEAN_MODES METADATA
     
    1211  COMMAND STR warptool
    1312  RETENTION_TIME U16 7
    14   ALTERNATE_CMD BOOL F
    1513END
    1614CLEAN_MODES METADATA
     
    1917# RETENTION_TIME U16 30
    2018  RETENTION_TIME S16 -1
    21   ALTERNATE_CMD BOOL F
    2219END
    2320CLEAN_MODES METADATA
    2421  MODE STR DIST
    25   COMMAND STR disttool
     22  COMMAND STR disttool -
    2623  RETENTION_TIME S16 7
    27   ALTERNATE_CMD BOOL T
     24  ALTERNATE_CMD STR A
     25END
     26CLEAN_MODES METADATA
     27  MODE STR MAGICDS
     28  COMMAND STR magicdstool
     29  RETENTION_TIME S16 1
     30  ALTERNATE_CMD STR B
    2831END
    2932
Note: See TracChangeset for help on using the changeset viewer.