IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 11, 2017, 4:50:14 PM (9 years ago)
Author:
watersc1
Message:

Edit to ensure ippb02 writes data to a different location. This is
necessary as those disks are too full.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/raw_MD5_check.pl

    r39951 r40033  
    1212my $dt = 0;
    1313my $hostname = hostname();
     14
     15for (my $v = 0; $v <= 2; $v++) {
     16    system("ls /data/${hostname}.${v}");
     17}
    1418
    1519my @tops = </data/${hostname}*>;
     
    106110        if ($Tpid[$i] == -1) { next; } # hasn't started yet
    107111        my $child = waitpid($Tpid[$i],WNOHANG);
     112        if ($child == -1) { next; } # Nothing here.
    108113        if ($child != 0) {
    109114            $time = time;
     
    122127    unless (-d $directory) { return(0); } # Skip not directories
    123128    my $out_log = "${directory}.OTA_md5sums";
     129    if ($out_log =~ /ippb02/) {
     130        $out_log = "/data/ippb01.0/watersc1/ippb02_md5sums/${directory}.OTA_md5sums";
     131    }
    124132    my $do_it = 1;
    125133   
    126134    if ($do_it == 1) {
     135        if (-e $out_log) {
     136            # Do not overwrite already existing files.
     137            print ">> $directory $out_log Already Exists.\n";
     138            return(0);
     139        }
    127140        open(O,">$out_log");
    128141        my @files = <${directory}/*ota*fits>;
Note: See TracChangeset for help on using the changeset viewer.