149 |
|
jobDir = common.work_space.jobDir() |
150 |
|
taskDir=common.work_space.topDir().split('/')[-2] |
151 |
|
shareDir = common.work_space.shareDir() |
152 |
+ |
submissionDay = time.strftime("%y%m%d",time.localtime()) |
153 |
|
|
154 |
|
params = {'shareDir':shareDir, |
155 |
|
'jobDir':jobDir, |
156 |
< |
'taskDir':taskDir} |
156 |
> |
'taskDir':taskDir, |
157 |
> |
'submissionDay':submissionDay} |
158 |
|
|
159 |
|
return params |
160 |
|
|
272 |
|
if not remoteHost: |
273 |
|
raise CrabException('FATAL ERROR: remoteHost not defined') |
274 |
|
|
275 |
< |
common.logger.info("try to find out username for remote Host via uberftp ...") |
276 |
< |
command="uberftp %s pwd|grep User|awk '{print $3}'" % remoteHost |
277 |
< |
(status, output) = commands.getstatusoutput(command) |
278 |
< |
if status == 0: |
279 |
< |
remoteUser = output |
280 |
< |
common.logger.info("remoteUser set to %s" % remoteUser) |
281 |
< |
if remoteUser==None: |
282 |
< |
raise CrabException('FATAL ERROR: REMOTE USER not defined') |
275 |
> |
#common.logger.info("try to find out username for remote Host via uberftp ...") |
276 |
> |
#command="uberftp %s pwd|grep User|awk '{print $3}'" % remoteHost |
277 |
> |
#(status, output) = commands.getstatusoutput(command) |
278 |
> |
#if status == 0: |
279 |
> |
# remoteUser = output |
280 |
> |
# common.logger.info("remoteUser set to %s" % remoteUser) |
281 |
> |
# if remoteUser==None: |
282 |
> |
# raise CrabException('FATAL ERROR: REMOTE USER not defined') |
283 |
|
|
284 |
< |
remoteUserHost = remoteUser + '@' + remoteHost |
284 |
> |
#remoteUserHost = remoteUser + '@' + remoteHost |
285 |
> |
remoteUserHost = remoteHost |
286 |
|
|
287 |
|
common._db.updateTask_({'serverName':remoteUserHost}) |
288 |
|
|