IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24447


Ignore:
Timestamp:
Jun 16, 2009, 3:00:31 PM (17 years ago)
Author:
Paul Price
Message:

Fix commands.
Need camera to be supplied.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_mops/ippScripts/scripts/publish_file.pl

    r24446 r24447  
    4444GetOptions(
    4545    'pub_id=s'          => \$pub_id, # Publish identifier
     46    'camera=s'          => \$camera, # Camera name
    4647    'stage=s'           => \$stage,       # Stage of interest
    4748    'stage_id=s'        => \$stage_id,    # Stage identifier
     
    6566my $outroot = "$workdir/$product.$pub_id"; # Output root name
    6667
    67 my $ipprc = PS::IPP::Config->new() or
     68my $ipprc = PS::IPP::Config->new( $camera ) or
    6869    &my_die( "Unable to set up", $pub_id, $PS_EXIT_CONFIG_ERROR ); # IPP configuration
    6970
     
    7879
    7980    if ($stage eq 'diff') {
    80         $command =  "difftool -skyfile -diff_id $stage_id";
     81        $command =  "difftool -diffskyfile -diff_id $stage_id";
    8182    } elsif ($stage eq 'camera') {
    8283        $command =  "camtool -processedexp -cam_id $stage_id";
     
    8485        &my_die( "Unrecognised stage: $stage", $pub_id, $PS_EXIT_CONFIG_ERROR );
    8586    }
     87    $command .= " -dbname $dbname" if defined $dbname;
    8688
    8789    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    150152unless ($no_update) {
    151153    my $command = "$pubtool -add -pub_id $pub_id -path_base $outroot";
     154    $command .= " -dbname $dbname" if defined $dbname;
    152155
    153156    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note: See TracChangeset for help on using the changeset viewer.