From 8ab674582e88582f06d729237d9cb1c00562451e Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Wed, 19 Oct 2005 02:10:24 -0400 Subject: fix pbs dependency stuff util/pbs/pbs.py: after -> afterok --HG-- extra : convert_revision : ee0af716bcc0f83c4103632bd277a5680b0d2c23 --- util/pbs/pbs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/pbs') diff --git a/util/pbs/pbs.py b/util/pbs/pbs.py index 292ddf1f9..70a0c6bed 100755 --- a/util/pbs/pbs.py +++ b/util/pbs/pbs.py @@ -158,7 +158,7 @@ class qsub: self.cmd.append('-q' + self.queue) if self.afterok: - self.cmd.append('-Wdepend=afterok:%s' % self.after) + self.cmd.append('-Wdepend=afterok:%s' % self.afterok) self.cmd.extend(args) self.script = script -- cgit v1.2.3 From a0829a7780b110a912ffc250d424b6dfe3586e62 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Wed, 2 Nov 2005 12:19:08 -0500 Subject: 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 --- util/pbs/pbs.py | 2 ++ util/pbs/send.py | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'util/pbs') diff --git a/util/pbs/pbs.py b/util/pbs/pbs.py index 70a0c6bed..21c2cb89d 100755 --- a/util/pbs/pbs.py +++ b/util/pbs/pbs.py @@ -147,6 +147,8 @@ class qsub: flags.append('e') if len(flags): self.cmd.append('-m ' + flags) + else: + self.cmd.append('-mn') if self.name: self.cmd.append("-N%s" % self.name) diff --git a/util/pbs/send.py b/util/pbs/send.py index d04f9066b..3ac34ff8e 100755 --- a/util/pbs/send.py +++ b/util/pbs/send.py @@ -96,7 +96,7 @@ Usage: try: 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: sys.exit(usage) @@ -113,6 +113,7 @@ docpts = False doruns = True runflag = False node_type = 'FAST' +update = True for opt,arg in opts: if opt == '-C': @@ -132,6 +133,8 @@ for opt,arg in opts: jfile = arg if opt == '-l': listonly = True + if opt == '-n': + update = False if opt == '-q': queue = arg if opt == '-R': @@ -152,7 +155,7 @@ from job import JobDir, date 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: print 'Checking for outdated files in Link directory' if not isdir(conf.basedir): -- cgit v1.2.3