Index: trunk/ippScripts/scripts/sc_remote_exec.pl
===================================================================
--- trunk/ippScripts/scripts/sc_remote_exec.pl	(revision 37143)
+++ trunk/ippScripts/scripts/sc_remote_exec.pl	(revision 37145)
@@ -255,10 +255,13 @@
 if ($poll_word eq 'Completed') { 
     my $iter = 0;
+    my $transfer_success = 1;
     do {
+	$transfer_success = 1;
 	check_ssh_connection(); 
 	my $return_push_output = ssh_exec_command("${remote_root}/sc_transfer_tool.pl --input $remote_return --offset $offset");
 	my $return_push_output_print = join "\n", @{ $return_push_output };
+	if ($return_push_output_print =~ /exited with value 255/) { $transfer_success = 0; }
 	print "$return_push_output_print\n";
-    } while ($iter < 10);  # Try harder;
+    } while (($transfer_success != 1) &&  ($iter < 10));  # Try harder;
 }
 else {
