ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/SchedulerLsf.py
(Generate patch)

Comparing COMP/CRAB/python/SchedulerLsf.py (file contents):
Revision 1.23 by spiga, Sun Sep 21 10:46:13 2008 UTC vs.
Revision 1.24 by slacapra, Fri Oct 31 13:18:14 2008 UTC

# Line 66 | Line 66 | class SchedulerLsf(SchedulerLocal) :
66              sites = [str(getLocalDomain(self))]  
67          return sites    
68  
69 <    def loggingInfo(self, id):
69 >    def loggingInfo(self, id, fname):
70          """ return logging info about job nj """
71 <        cmd = 'bjobs -l ' + id
71 >        lsfid = common._db.queryRunJob('schedulerId',id)
72 >        cmd = 'bjobs -l ' + str(lsfid[0])
73          cmd_out = runCommand(cmd)
74 <        return cmd_out
74 >        f = open(fname,'w')
75 >        f.write(cmd_out)
76 >        f.close()
77 >        return fname
78  
79      def wsCopyOutput(self):
80          txt=self.wsCopyOutput_comm(self.pool)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines