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_dorequest.pl

    r42981 r43052  
    2828}
    2929
    30 use IPC::Cmd 0.36 qw( can_run run );
     30use IPC::Cmd 0.36 qw( can_run );
    3131
    3232use PS::IPP::Metadata::Config;
     
    4444                       metadataLookupBool
    4545                       caturi
     46                       ps_run
    4647                       );
    4748
     
    6364    my $command = "$pstamptool -pendingjob";
    6465    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    65         run(command => $command, verbose => $verbosity);
     66        ps_run(command => $command, verbose => $verbosity);
    6667    unless ($success) {
    6768        die("Unable to perform pstamptool -pendingreq: $error_code");
     
    9495    my $command = "$ppstamp_run $job->{job_id}";
    9596    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    96         run(command => $command, verbose => $verbosity);
     97        ps_run(command => $command, verbose => $verbosity);
    9798    unless ($success) {
    9899        die("Unable to perform $command: $error_code");
     
    108109    my $command = "$pstamptool -updatereq -req_id $request_id -set_state stop";
    109110    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    110         run(command => $command, verbose => $verbosity);
     111        ps_run(command => $command, verbose => $verbosity);
    111112    unless ($success) {
    112113        die("Unable to perform pstamptool -updatereq: $error_code");
Note: See TracChangeset for help on using the changeset viewer.