IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 12, 2026, 2:47:49 PM (7 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/pstamp_get_image_job.pl

    r36048 r43052  
    1616use File::Basename;
    1717use Digest::MD5::File qw( file_md5_hex );
    18 use IPC::Cmd 0.36 qw( can_run run );
    19 
    20 
    21 use PS::IPP::Config qw( :standard );
     18use IPC::Cmd 0.36 qw( can_run );
     19
     20
     21use PS::IPP::Config qw( :standard ps_run );
    2222
    2323my $product;
     
    132132    $command .= " --verbose" if $verbose;
    133133    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    134         run(command => $command, verbose => $verbose);
     134        ps_run(command => $command, verbose => $verbose);
    135135    unless ($success) {
    136136        my_die("Unable to perform $command: $error_code", $error_code >> 8);
     
    174174        my $command = "$pstamptool -deletefile -job_id $job_id";
    175175        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    176             run(command => $command, verbose => $verbose);
     176            ps_run(command => $command, verbose => $verbose);
    177177        unless ($success) {
    178178            my_die("Unable to perform $command: $error_code", $error_code >> 8);
     
    193193    my $command = "$pstamptool -addfile -job_id $job_id -path $bundle_name";
    194194    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    195         run(command => $command, verbose => $verbose);
     195        ps_run(command => $command, verbose => $verbose);
    196196    unless ($success) {
    197197        my_die("Unable to perform $command: $error_code", $error_code >> 8);
Note: See TracChangeset for help on using the changeset viewer.