IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32405


Ignore:
Timestamp:
Sep 14, 2011, 2:17:19 PM (15 years ago)
Author:
watersc1
Message:

port to fix burntool update errors from clogging up registration. I've also rolled back the ppConfigDump -get-key edit from the trunk as the tag version of ppConfigDump does not currently support it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20110622/ippScripts/scripts/register_imfile.pl

    r31603 r32405  
    6060
    6161my $ipprc = PS::IPP::Config->new() or my_die_for_add( "Unable to set up", $exp_id, $tmp_exp_name, $tmp_class_id, $uri, $PS_EXIT_CONFIG_ERROR ); # IPP configuration
    62 $ipprc->redirect_output($logfile) or my_die_for_add( "Unable to redirect output", $exp_id, $tmp_exp_name, $tmp_class_id, $uri, $PS_EXIT_SYS_ERROR ) if $logfile;
     62$ipprc->redirect_to_logfile($logfile) or my_die_for_add( "Unable to redirect output", $exp_id, $tmp_exp_name, $tmp_class_id, $uri, $PS_EXIT_SYS_ERROR ) if $logfile;
    6363
    6464pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
     
    147147    elsif (($isGPC1 == 1) && ($burntoolStateCurrent == 1)) {
    148148#       print STDERR "In the good region: >>$burntoolStateCurrent<<\n";
    149         my $ppConfigDump_cmd = "$ppConfigDump -camera GPC1 -dump-camera -";
     149#        my $ppConfigDump_cmd = "$ppConfigDump -camera GPC1 -get-key BURNTOOL.STATE.GOOD";
     150        my $ppConfigDump_cmd = "$ppConfigDump -camera GPC1 -dump-camera -";
    150151        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    151152            IPC::Cmd::run(command => $ppConfigDump_cmd, verbose => $verbose);
     
    522523        $command .= " -class_id $class_id";
    523524        $command .= " -fault $exit_code";
     525        $command .= " -set_state pending_burntool ";
    524526        $command .= " -hostname $host" if defined $host;
    525527        $command .= " -dbname $dbname" if defined $dbname;
Note: See TracChangeset for help on using the changeset viewer.