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/dquery_job_run.pl

    r41584 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
     
    120120my $command = "ppCoord -astrom $catalog -radec $coordname";
    121121my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    122     run(command => $command, verbose => $verbose);
     122    ps_run(command => $command, verbose => $verbose);
    123123## MEH need to adjust error_code to rc
    124124unless ($success) {
     
    162162
    163163( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    164     run(command => $psphot_cmd, verbose => $verbose);
     164    ps_run(command => $psphot_cmd, verbose => $verbose);
    165165unless ($success) {
    166166    # $params->{PROC_ERROR} = $PSTAMP_SYSTEM_ERROR;
     
    339339
    340340    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    341         run(command => $command, verbose => $verbose);
     341        ps_run(command => $command, verbose => $verbose);
    342342    unless ($success) {
    343343        my $rc = $error_code >> 8;
Note: See TracChangeset for help on using the changeset viewer.