[GE users] How to get the working directory of finished jobs?

reuti reuti at staff.uni-marburg.de
Thu Jan 7 21:50:41 GMT 2010


Am 07.01.2010 um 22:43 schrieb reuti:

> Am 07.01.2010 um 21:35 schrieb noping:
>
>> "qstat -j" reports the current working directory (cwd line) of
>> running and waiting jobs. "qacct -j" reports finished jobs but I
>> don't know the working directory of finished jobs.
>>
>> Is there any way to get the working directory of finished jobs?
>
> No. It's nowhere recorded. What we use for certain types of jobs is a
> qsub wrapper, which will assemble the jobname which will consist of
> the path (plus the name of the acutal file), while disregarding the
> three top level directory, as these are usually /home/$USER/projects:
>
> jobpath=$PWD/$inputfilename
> jobpath=${jobpath//\//.} # replace / with . as / isn't allowed in
> jobnames
> jobpath=${jobpath#.*.*.} # remove /home/$USER
> jobpath=${jobpath#*.} # remove an additonal level if it's there
>
> Then use:
>
> #$ -N $jobpath

qsub -N $jobpath ...

I meant. The #$ was from the interim jobscript we create as a here- 
document (and at time of creation of this interim jobscript the  
$jobpath will be expanded), and then we qsub and delete the interim  
jobscript.

At runtime of a job the $jobpath won't be replaced though.

-- Reuti


> HTH - Reuti
>
>
>> ------------------------------------------------------
>> http://gridengine.sunsource.net/ds/viewMessage.do?
>> dsForumId=38&dsMessageId=237164
>>
>> To unsubscribe from this discussion, e-mail: [users-
>> unsubscribe at gridengine.sunsource.net].
>
> ------------------------------------------------------
> http://gridengine.sunsource.net/ds/viewMessage.do? 
> dsForumId=38&dsMessageId=237185
>
> To unsubscribe from this discussion, e-mail: [users- 
> unsubscribe at gridengine.sunsource.net].

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=237186

To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list