Changeset 37286
- Timestamp:
- Aug 21, 2014, 8:15:25 PM (12 years ago)
- Location:
- tags/ipp-pv3-20140717/ippScripts/scripts
- Files:
-
- 1 added
- 1 edited
-
sc_remote_poll.pl (added)
-
sc_transfer_tool.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-pv3-20140717/ippScripts/scripts/sc_transfer_tool.pl
r37271 r37286 88 88 } 89 89 90 open (STATFILE, ">${local_tmp}/${input_base}.stat"); 91 90 92 $i = 0; 91 93 while(<I>) { … … 112 114 if ($quickfetch && (-e $_)) { next; } 113 115 print { $filehandles[$i] } $fline; 114 } 115 elsif (!($fetch)) { # We are pushing 116 # The rsync call expects to find files of a given name in the directory specified. 117 # print { $filehandles[$i] } "${local_tmp}/$_" . "\n"; 118 # if (-e "${local_tmp}/$_") { 119 print { $filehandles[$i] } "$_" . "\n"; 120 # } 121 # else { 122 # print "missing $_\n"; 123 # } 116 } else { 117 # We are pushing, but only send back files we actually have 118 if (-e "$_") { 119 print { $filehandles[$i] } "$_" . "\n"; 120 print STATFILE, "$_ PASS\n"; 121 } else { 122 print STATFILE, "$_ FAIL\n"; 123 } 124 124 } 125 125 } 126 126 close(I); 127 close(STATFILE); 127 128 128 129 for ($i = 0; $i < $threads; $i++) { … … 130 131 } 131 132 132 # fork the tars133 # fork the rsync 133 134 my @pids = (); 134 135 for ($i = 0; $i < $threads; $i++) { … … 146 147 } 147 148 } 149 148 150 my $global_status = 0; 149 151 for ($i = 0; $i < $threads; $i++) { … … 157 159 # unlink("${local_tmp}/${input_base}.${i}"); 158 160 } 161 162 my $scp_command = "$scp_cmd $option ${local_tmp}/${input_base}.stat $hosts[0]:/tmp/"; 163 print "$scp_command\n"; 164 system("$scp_command"); 165 # XXX check return status 159 166 160 167 print "global status: $global_status\n";
Note:
See TracChangeset
for help on using the changeset viewer.
