IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37144


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

fetching needs to try harder to do its job.

File:
1 edited

Legend:

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

    r37126 r37144  
    253253# Feed teh return list into the transfer tool
    254254# If this fails, we should go to an auth wait point.
    255 my $return_push_output = ssh_exec_command("${remote_root}/sc_transfer_tool.pl --input $remote_return --offset $offset");
    256 my $return_push_output_print = join "\n", @{ $return_push_output };
    257 print "$return_push_output_print\n";
    258 
    259 
     255if ($poll_word eq 'Completed') {
     256    my $iter = 0;
     257    do {
     258        check_ssh_connection();
     259        my $return_push_output = ssh_exec_command("${remote_root}/sc_transfer_tool.pl --input $remote_return --offset $offset");
     260        my $return_push_output_print = join "\n", @{ $return_push_output };
     261        print "$return_push_output_print\n";
     262    } while ($iter < 10);  # Try harder;
     263}
     264else {
     265    my $return_push_output = ssh_exec_command("${remote_root}/sc_transfer_tool.pl --input $remote_return --offset $offset");
     266    my $return_push_output_print = join "\n", @{ $return_push_output };
     267    print "$return_push_output_print\n";
     268}
    260269
    261270foreach my $file (@dbinfo_files) {
Note: See TracChangeset for help on using the changeset viewer.