207 |
|
txt += '#\n' |
208 |
|
txt += '# Copy Input Data from SE to this WN\n' |
209 |
|
txt += '#\n' |
210 |
< |
txt +='lcg-cp --vo $VO lfn:$input_lfn file:`pwd`/$the_ntuple 2>&1\n' |
211 |
< |
txt +='copy_input_exit_status=$?\n' |
212 |
< |
txt +='echo "COPY_INPUT_EXIT_STATUS = $copy_input_exit_status"\n' |
213 |
< |
txt +='if [ $copy_input_exit_status -ne 0 ]; then \n' |
214 |
< |
txt +=' echo "Problems with copying to WN" \n' |
215 |
< |
txt +='else \n' |
216 |
< |
txt +=' echo "input copied into WN" \n' |
217 |
< |
txt +='fi \n' |
210 |
> |
### changed by georgia (put a loop copying more than one input files per jobs) |
211 |
> |
txt +='for input_file in $cur_file_list \n' |
212 |
> |
txt +='do \n' |
213 |
> |
txt +=' lcg-cp --vo $VO lfn:$input_lfn/$input_file file:`pwd`/$input_file 2>&1\n' |
214 |
> |
txt +=' copy_input_exit_status=$?\n' |
215 |
> |
txt +=' echo "COPY_INPUT_EXIT_STATUS = $copy_input_exit_status"\n' |
216 |
> |
txt +=' if [ $copy_input_exit_status -ne 0 ]; then \n' |
217 |
> |
txt +=' echo "Problems with copying to WN" \n' |
218 |
> |
txt +=' else \n' |
219 |
> |
txt +=' echo "input copied into WN" \n' |
220 |
> |
txt +=' fi \n' |
221 |
> |
txt +='done \n' |
222 |
|
return txt |
223 |
|
|
224 |
|
def wsCopyOutput(self): |