IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37143 for trunk/ippScripts


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

The fetch code needs to try harder to succeed. If it fails, it needs
to try again. Rsync will speed things up somewhat, so we're not going
to retransfer things. Still, if the word is that we completed, we
better get everything that we made.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/sc_remote_exec.pl

    r37125 r37143  
    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.