IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37146


Ignore:
Timestamp:
Jul 30, 2014, 2:20:24 PM (12 years ago)
Author:
watersc1
Message:

forgot to add a check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-pv3-20140717/ippScripts/scripts/sc_remote_exec.pl

    r37144 r37146  
    255255if ($poll_word eq 'Completed') {
    256256    my $iter = 0;
     257    my $transfer_success = 1;
    257258    do {
     259        $transfer_success = 1;
    258260        check_ssh_connection();
    259261        my $return_push_output = ssh_exec_command("${remote_root}/sc_transfer_tool.pl --input $remote_return --offset $offset");
    260262        my $return_push_output_print = join "\n", @{ $return_push_output };
     263        if ($return_push_output_print =~ /exited with value 255/) { $transfer_success = 0; }
    261264        print "$return_push_output_print\n";
    262     } while ($iter < 10);  # Try harder;
     265    } while (($transfer_success != 1) &&  ($iter < 10));  # Try harder;
    263266}
    264267else {
Note: See TracChangeset for help on using the changeset viewer.