Simple updates to pbs and send.py
util/pbs/pbs.py: Change the default so that we do not get mail under any circumstances from pbs. util/pbs/send.py: Add a -n flag to send.py that causes the Base directory to *not* sync with the Link directory --HG-- extra : convert_revision : 6e872153b6b2c34b61ec2ddbf3e5536876f4b43b
This commit is contained in:
parent
51ac634b2d
commit
a0829a7780
2 changed files with 7 additions and 2 deletions
|
@ -147,6 +147,8 @@ class qsub:
|
||||||
flags.append('e')
|
flags.append('e')
|
||||||
if len(flags):
|
if len(flags):
|
||||||
self.cmd.append('-m ' + flags)
|
self.cmd.append('-m ' + flags)
|
||||||
|
else:
|
||||||
|
self.cmd.append('-mn')
|
||||||
|
|
||||||
if self.name:
|
if self.name:
|
||||||
self.cmd.append("-N%s" % self.name)
|
self.cmd.append("-N%s" % self.name)
|
||||||
|
|
|
@ -96,7 +96,7 @@ Usage:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import getopt
|
import getopt
|
||||||
opts, args = getopt.getopt(sys.argv[1:], '-Ccdefhj:lq:Rt:v')
|
opts, args = getopt.getopt(sys.argv[1:], '-Ccdefhj:lnq:Rt:v')
|
||||||
except getopt.GetoptError:
|
except getopt.GetoptError:
|
||||||
sys.exit(usage)
|
sys.exit(usage)
|
||||||
|
|
||||||
|
@ -113,6 +113,7 @@ docpts = False
|
||||||
doruns = True
|
doruns = True
|
||||||
runflag = False
|
runflag = False
|
||||||
node_type = 'FAST'
|
node_type = 'FAST'
|
||||||
|
update = True
|
||||||
|
|
||||||
for opt,arg in opts:
|
for opt,arg in opts:
|
||||||
if opt == '-C':
|
if opt == '-C':
|
||||||
|
@ -132,6 +133,8 @@ for opt,arg in opts:
|
||||||
jfile = arg
|
jfile = arg
|
||||||
if opt == '-l':
|
if opt == '-l':
|
||||||
listonly = True
|
listonly = True
|
||||||
|
if opt == '-n':
|
||||||
|
update = False
|
||||||
if opt == '-q':
|
if opt == '-q':
|
||||||
queue = arg
|
queue = arg
|
||||||
if opt == '-R':
|
if opt == '-R':
|
||||||
|
@ -152,7 +155,7 @@ from job import JobDir, date
|
||||||
|
|
||||||
conf = jobfile.JobFile(jfile)
|
conf = jobfile.JobFile(jfile)
|
||||||
|
|
||||||
if not listonly and not onlyecho and isdir(conf.linkdir):
|
if update and not listonly and not onlyecho and isdir(conf.linkdir):
|
||||||
if verbose:
|
if verbose:
|
||||||
print 'Checking for outdated files in Link directory'
|
print 'Checking for outdated files in Link directory'
|
||||||
if not isdir(conf.basedir):
|
if not isdir(conf.basedir):
|
||||||
|
|
Loading…
Reference in a new issue