# | 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 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |