16 |
|
including success checking version also for CAF using rfcp command to copy the output to SE |
17 |
|
input: |
18 |
|
$1 middleware (CAF, LSF, LCG, OSG) |
19 |
< |
$2 local file (the physical path of output file respect to current working directory) |
20 |
< |
$3 file name (the output file name) |
21 |
< |
$4 remote SE_PATH (absolute) |
22 |
< |
$5 remote SE |
23 |
< |
$6 srm version (only in the case of LCG or OSG) |
19 |
> |
$2 local file (the absolute path of output file or just the name if it's in top dir) |
20 |
> |
$3 if needed: file name (the output file name) |
21 |
> |
$5 remote SE (complete endpoint) |
22 |
> |
$6 srm version |
23 |
|
output: |
24 |
|
return 0 if all ok |
25 |
|
return 60307 if srmcp failed |
169 |
|
# if backup : |
170 |
|
# msg = 'WARNING: backup logic is under implementation\n' |
171 |
|
# #backupDict = self.backup() |
172 |
< |
# ### NOTA DEVE RITORNARE UN DICT comprensivo di LFN SE Name |
172 |
> |
# ### NOTE: IT MUST RETURN a DICT contains also LFN and SE Name |
173 |
|
# results.update(backupDict) |
174 |
|
# print msg |
175 |
|
return results |
252 |
|
txt += 'echo "LFN: '+lfn+'"\n' |
253 |
|
txt += 'echo "StorageElement: '+se+'"\n' |
254 |
|
txt += 'echo "StageOutExitStatusReason ='+dict['reason']+'" | tee -a $RUNTIME_AREA/$repo\n' |
255 |
< |
txt += 'echo "StageOutSE = '+dict['se']+'" >> $RUNTIME_AREA/$repo\n' |
255 |
> |
txt += 'echo "StageOutSE = '+se+'" >> $RUNTIME_AREA/$repo\n' |
256 |
|
if dict['erCode'] != '0': |
257 |
|
cmscp_exit_status = dict['erCode'] |
258 |
|
txt += '\n' |