IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 21, 2010, 11:35:15 AM (16 years ago)
Author:
Paul Price
Message:

Add date of processing to output log.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/receive_file.pl

    r25940 r27718  
    77use Sys::Hostname;
    88my $host = hostname();
    9 print "Starting script $0 on $host\n\n";
     9my $date = `date`;
     10print "\n\n";
     11print "Starting script $0 on $host at $date\n\n";
    1012
    1113use DateTime;
     
    124126    print "dirinfo resolved is: $resolved\n" if $verbose;
    125127
    126     open OUT, ">$resolved" 
     128    open OUT, ">$resolved"
    127129        or &my_die( "failed to open $resolved\n", $file_id, $PS_EXIT_UNKNOWN_ERROR);
    128130    print OUT @$dirinfo_lines
     
    130132    close OUT
    131133        or &my_die( "failed to close $resolved\n", $file_id, $PS_EXIT_UNKNOWN_ERROR);
    132    
     134
    133135    # update the fileset to allow processing of other files
    134136    my $command = "$receivetool -updatefileset -fileset_id $fileset_id";
     
    160162    &my_die( "failed to resolve $dbinfo_uri\n", $file_id, $PS_EXIT_UNKNOWN_ERROR) if !$resolved;
    161163
    162     open OUT, ">$resolved" 
     164    open OUT, ">$resolved"
    163165        or &my_die( "failed to open $resolved\n", $file_id, $PS_EXIT_UNKNOWN_ERROR);
    164166
     
    227229                $current_component = $value;
    228230                $component_dir = $components->{$current_component};
    229                 &my_die( "$component_dir is null for $value in $filename: $runType\n", 
     231                &my_die( "$component_dir is null for $value in $filename: $runType\n",
    230232                        $file_id, $PS_EXIT_UNKNOWN_ERROR) if !$component_dir;
    231233            } elsif ($name eq 'workdir') {
     
    237239                $new_value = basename($value);
    238240            } elsif ((($name eq 'uri') or ($name eq 'path_base')) and ($value ne 'NULL')) {
    239                 &my_die( "$component_dir is null and we need it for $name", 
     241                &my_die( "$component_dir is null and we need it for $name",
    240242                        $file_id, $PS_EXIT_PROG_ERROR) if !$component_dir;
    241243
Note: See TracChangeset for help on using the changeset viewer.