IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26549


Ignore:
Timestamp:
Jan 8, 2010, 4:12:52 PM (16 years ago)
Author:
bills
Message:

for some strange reason I hard coded -dbname gpc1 to the magicdstool commands

File:
1 edited

Legend:

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

    r25837 r26549  
    190190            # Tell magicdstool that we've cleaned up this data, so it needs to do the same if it needs to do the same.
    191191            my $magicdstool = can_run('magicdstool') or die "Can't find magicdstool";
    192             $command = "$magicdstool -dbname gpc1  -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned";
     192            $command = "$magicdstool -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned";
     193            $command .= " -dbname $dbname" if defined $dbname;
    193194            ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    194195                run(command => $command, verbose => $verbose);
     
    309310        # Tell magicdstool that we've cleaned up this data, so it needs to do the same if it needs to do the same.
    310311        my $magicdstool = can_run('magicdstool') or die "Can't find magicdstool";
    311         $command = "$magicdstool -dbname gpc1 -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned";
     312        $command = "$magicdstool -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned";
     313        $command .= " -dbname $dbname" if defined $dbname;
    312314        ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    313315            run(command => $command, verbose => $verbose);
     
    444446            # Tell magicdstool that we've cleaned up this data, so it needs to do the same if it needs to do the same.
    445447            my $magicdstool = can_run('magicdstool') or die "Can't find magicdstool";
    446             $command = "$magicdstool -dbname gpc1 -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned";
     448            $command = "$magicdstool -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned";
     449            $command .= " -dbname $dbname" if defined $dbname;
    447450            ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    448451                run(command => $command, verbose => $verbose);
     
    580583            # Tell magicdstool that we've cleaned up this data, so it needs to do the same if it needs to do the same.
    581584            my $magicdstool = can_run('magicdstool') or die "Can't find magicdstool";
    582             $command = "$magicdstool -dbname gpc1  -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned";
     585            $command = "$magicdstool -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned";
     586            $command .= " -dbname $dbname" if defined $dbname;
    583587            ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    584588                run(command => $command, verbose => $verbose);
     
    732736            # Tell magicdstool that we've cleaned up this data, so it needs to do the same if it needs to do the same.
    733737            my $magicdstool = can_run('magicdstool') or die "Can't find magicdstool";
    734             $command = "$magicdstool -dbname gpc1 -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned";
     738            $command = "$magicdstool -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned";
     739            $command .= " -dbname $dbname" if defined $dbname;
    735740            ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    736741                run(command => $command, verbose => $verbose);
Note: See TracChangeset for help on using the changeset viewer.