IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36882


Ignore:
Timestamp:
Jun 16, 2014, 1:42:14 PM (12 years ago)
Author:
bills
Message:

when psmkreq fails print out the command line to stderr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstamp_webrequest.pl

    r35439 r36882  
    9393    my $command = "$psmkreq --req_name $request_name  --output $request_file @ARGV";
    9494
     95if (0) {
     96open DEBUG, ">>/tmp/pstamp.debug.log";
     97print DEBUG "\ncommand is: $command\n";
     98close DEBUG;
     99}
     100
    95101    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    96102        run(command => $command, verbose => $verbose);
    97103    unless ($success) {
    98104        print STDERR @$stderr_buf;
     105        print STDERR "\ncommand was: $command\n";
    99106        die("Unable to perform psmkreq: $error_code");
    100107    }
Note: See TracChangeset for help on using the changeset viewer.