IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28023


Ignore:
Timestamp:
May 19, 2010, 12:26:34 PM (16 years ago)
Author:
rhenders
Message:

Added temporary logfile to track JobID/expID pairings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/scripts/ippToPsps_run.pl

    r27980 r28023  
    1616# TODO temporary until we use database to store current jobid
    1717my $jobIdFilePath = "./config/currentJobId.txt";
     18my $logFile = "./config/logfile.txt";
    1819
    1920# default values for certain globals
     
    2728$singleExpId = undef;
    2829$datastoreProduct = "PSPS_test";
     30
    2931
    3032# get user args
     
    166168    $query->execute;
    167169
     170    open (LOGFILE, ">> $logFile");
     171
    168172    # loop round exposures
    169173    while (my @row = $query->fetchrow_array()) {
     
    215219                }
    216220
     221                # write to the log
     222                print LOGFILE "$jobId $expId\n";
     223
    217224                $jobId++;
    218225                $batchId = 0;
     
    232239
    233240    $db->disconnect();
     241    close (LOGFILE);
    234242
    235243    return 1;
Note: See TracChangeset for help on using the changeset viewer.