147 |
|
txt += '#\n' |
148 |
|
txt += '# Copy output to SE = $SE\n' |
149 |
|
txt += '#\n' |
150 |
< |
txt += 'if [ $executable_exit_status -eq 0 ]; then\n' |
150 |
> |
#### per orca l'exit_status non e' affidabile..... |
151 |
> |
#txt += 'if [ $executable_exit_status -eq 0 ]; then\n' |
152 |
> |
txt += 'if [ $exe_result -eq 0 ]; then\n' |
153 |
|
txt += ' for out_file in $file_list ; do\n' |
154 |
|
txt += ' echo "Trying to copy output file to $SE "\n' |
155 |
|
txt += ' echo "'+copy+'"\n' |
176 |
|
txt += '#\n' |
177 |
|
txt += '# Register output to RLS\n' |
178 |
|
txt += '#\n' |
179 |
< |
txt += 'if [[ $executable_exit_status -eq 0 && $copy_exit_status -eq 0 ]]; then\n' |
179 |
> |
### analogo |
180 |
> |
#txt += 'if [[ $executable_exit_status -eq 0 && $copy_exit_status -eq 0 ]]; then\n' |
181 |
> |
txt += 'if [[ $exe_result -eq 0 && $copy_exit_status -eq 0 ]]; then\n' |
182 |
|
txt += ' for out_file in $file_list ; do\n' |
183 |
|
txt += ' echo "Trying to register the output file into RLS"\n' |
184 |
|
txt += ' echo "lcg-rf -l $LFN/$out_file --vo $VO sfn://$SE$SE_PATH/$out_file"\n' |
201 |
|
txt += ' echo "output registered to RLS"\n' |
202 |
|
txt += ' fi \n' |
203 |
|
txt += ' done\n' |
204 |
< |
txt += 'elif [[ $executable_exit_status -eq 0 && $copy_exit_status -ne 0 ]]; then \n' |
204 |
> |
txt += 'elif [[ $exe_result -eq 0 && $copy_exit_status -ne 0 ]]; then \n' |
205 |
|
txt += ' echo "Trying to copy output file to CloseSE"\n' |
206 |
|
txt += ' CLOSE_SE=`edg-brokerinfo getCloseSEs | head -1`\n' |
207 |
|
txt += ' for out_file in $file_list ; do\n' |