/[pdpsoft]/trunk/nl.nikhef.pdp.lrmsutils/lrms-pbs/pbsServer.py
ViewVC logotype

Diff of /trunk/nl.nikhef.pdp.lrmsutils/lrms-pbs/pbsServer.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 109 by templon, Fri Feb 27 10:22:17 2009 UTC revision 110 by templon, Mon Mar 2 15:05:13 2009 UTC
# Line 26  class LiveServer(Server): Line 26  class LiveServer(Server):
26          cnow = time.ctime() # this hack is to get around time zone problems          cnow = time.ctime() # this hack is to get around time zone problems
27          if 'file' in kw.keys() and kw['file'] != None:          if 'file' in kw.keys() and kw['file'] != None:
28              cmdstr = '/bin/cat ' + kw['file']              cmdstr = '/bin/cat ' + kw['file']
         elif 'host' in kw.keys() and kw['host'] != None:  
             cmdstr = 'qstat -f ' + kw['host']  
29          else:          else:
30              cmdstr = 'qstat -f'              cmdstr = 'qstat -f'
31          (stat, qstatout) = commands.getstatusoutput(cmdstr)          (stat, qstatout) = commands.getstatusoutput(cmdstr)

Legend:
Removed from v.109  
changed lines
  Added in v.110

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28