ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/python/qstat.py
(Generate patch)

Comparing UserCode/VHbb/python/qstat.py (file contents):
Revision 1.1 by peller, Thu Oct 11 12:28:59 2012 UTC vs.
Revision 1.2 by peller, Fri Mar 8 10:04:15 2013 UTC

# Line 1 | Line 1
1   #!/usr/bin/env python
2   import os,sys
3   from time import sleep
4 + p = sys.argv
5 + p[0] = 'qstat'
6 + pj = ' '.join(p)
7   class progbar:
8      def __init__(self,width):
9          self.width=width
# Line 11 | Line 14 | class progbar:
14          sys.stdout.write("\033[1;42m \033[1;m")
15          sys.stdout.flush()
16   def getnum():
17 <    q=os.popen('qstat')
17 >    q=os.popen(pj)
18      num=len(q.readlines())
19      if num > 2: return num-2
20      else: return 0

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines