IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 12, 2026, 2:47:49 PM (5 weeks ago)
Author:
eugene
Message:

convert the IPC::Cmd run calls to ps_run to handle inconsistent behavior between IPC:Cmd versions pre- and post-0.40

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pstamp-20260421/pstamp/scripts/detectability_respond.pl

    r33283 r43052  
    1313use File::Basename;
    1414use File::Copy;
    15 use IPC::Cmd 0.36 qw( can_run run );
     15use IPC::Cmd 0.36 qw( can_run );
    1616use Getopt::Long qw( GetOptions );
    1717use Pod::Usage qw( pod2usage );
     
    2020use PS::IPP::PStamp::RequestFile qw( :standard );
    2121use PS::IPP::PStamp::Job qw( :standard );
    22 use PS::IPP::Config qw( :standard );
     22use PS::IPP::Config qw( :standard ps_run );
    2323use PS::IPP::Metadata::List qw( parse_md_list );
    2424
     
    108108    my $dqr_command = "$detect_query_read --dbname $imagedb --input $request_file";
    109109    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    110         run(command => $dqr_command, verbose => $verbose);
     110        ps_run(command => $dqr_command, verbose => $verbose);
    111111    unless ($success) {
    112112        # This is a problem, because I'm not sure how we handle a failure to read something.
     
    433433        my $command = "ppCoord -astrom $catalog -radec $coordname";
    434434        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    435             run(command => $command, verbose => $verbose);
     435            ps_run(command => $command, verbose => $verbose);
    436436        unless ($success) {
    437437            my_die("Unable to perform $command. Error_code: $error_code",
     
    473473       
    474474        ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    475             run(command => $psphot_cmd, verbose => $verbose);
     475            ps_run(command => $psphot_cmd, verbose => $verbose);
    476476        unless ($success) {
    477477            $query{$fpa_id}{PROC_ERROR}[$index] = $PSTAMP_SYSTEM_ERROR;
     
    828828
    829829    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    830         run(command => $command, verbose => $verbose);
     830        ps_run(command => $command, verbose => $verbose);
    831831    unless ($success) {
    832832        my $rc = $error_code >> 8;
Note: See TracChangeset for help on using the changeset viewer.