- Timestamp:
- Jun 12, 2026, 2:47:49 PM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-pstamp-20260421/pstamp/scripts/dqueryparse.pl
r42042 r43052 13 13 use File::Basename; 14 14 use File::Copy; 15 use IPC::Cmd 0.36 qw( can_run run);15 use IPC::Cmd 0.36 qw( can_run ); 16 16 use Getopt::Long qw( GetOptions ); 17 17 use Pod::Usage qw( pod2usage ); … … 21 21 use PS::IPP::PStamp::RequestFile qw( :standard ); 22 22 use PS::IPP::PStamp::Job qw( :standard ); 23 use PS::IPP::Config qw( :standard );23 use PS::IPP::Config qw( :standard ps_run ); 24 24 use PS::IPP::Metadata::List qw( parse_md_list ); 25 25 … … 88 88 my $command = "echo $request_file | $fields -x 0 EXTNAME EXTVER QUERY_ID"; 89 89 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 90 run(command => $command, verbose => $verbose);90 ps_run(command => $command, verbose => $verbose); 91 91 92 92 $fields_output = join "", @$stdout_buf; … … 105 105 # set verbose to false so that error message about request not found doesn't appear in parse_error.txt 106 106 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 107 run(command => $command, verbose => 0);107 ps_run(command => $command, verbose => 0); 108 108 if ($success) { 109 109 # -listreq succeeded duplicate request name … … 112 112 unless ($no_update) { 113 113 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 114 run(command => $command, verbose => $verbose);114 ps_run(command => $command, verbose => $verbose); 115 115 if (!$success) { 116 116 my_die("$command failed", $PS_EXIT_UNKNOWN_ERROR); … … 126 126 unless ($no_update) { 127 127 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 128 run(command => $command, verbose => $verbose);128 ps_run(command => $command, verbose => $verbose); 129 129 unless ($success) { 130 130 my_die("$command failed", $PS_EXIT_UNKNOWN_ERROR); … … 151 151 my $dqr_command = "$detect_query_read --dbname $imagedb --input $request_file"; 152 152 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 153 run(command => $dqr_command, verbose => $verbose);153 ps_run(command => $dqr_command, verbose => $verbose); 154 154 unless ($success) { 155 155 # This is a problem, because I'm not sure how we handle a failure to read something. … … 489 489 unless ($no_update) { 490 490 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 491 run(command => $command, verbose => $verbose);491 ps_run(command => $command, verbose => $verbose); 492 492 if ($success) { 493 493 my $job_id = join "", @$stdout_buf; … … 513 513 unless ($no_update) { 514 514 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 515 run(command => $command, verbose => $verbose);515 ps_run(command => $command, verbose => $verbose); 516 516 if ($success) { 517 517 my $job_id = join "", @$stdout_buf; … … 534 534 unless ($no_update) { 535 535 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 536 run(command => $command, verbose => $verbose);536 ps_run(command => $command, verbose => $verbose); 537 537 unless ($success) { 538 538 my_die("$command failed",$PS_EXIT_UNKNOWN_ERROR); … … 564 564 if (!$no_update) { 565 565 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 566 run(command => $command, verbose => $verbose);566 ps_run(command => $command, verbose => $verbose); 567 567 unless ($success) { 568 568 my_die("$command failed", $PS_EXIT_UNKNOWN_ERROR);
Note:
See TracChangeset
for help on using the changeset viewer.
