def __init__(self, options): self.options = options self.action = options.action self.cpus = options.cpus if options.walltime: self.walltime = WalltimeUtils.fromShortStringToSeconds(options.walltime) self.jobname = options.jobname self.filepath = options.filepath if self.filepath: self.filename = FileManager.getFilename(self.filepath) self.runs = options.runs self.memory = options.memory self.refresh_jobs()
""" Created on 17/11/2009 @author: markus """ from grisu.frontend.control.login import LoginManager from grisu.frontend.model.job import JobObject from grisu.model import FileManager import sys si = LoginManager.loginCommandline() print "Parsing commandline arguments..." file1url = sys.argv[1] file1Name = FileManager.getFilename(file1url) file2url = sys.argv[2] file2Name = FileManager.getFilename(file2url) print "Creating job..." # create the job object job = JobObject(si) # set a unique jobname job.setTimestampJobname("diff_job") print "Set jobname to: " + job.getJobname() # setting the application. this means that grisu can figure out the submission location and # you don't have to do that manually job.setApplication("UnixCommands") # set the commandline that needs to be executed
''' Created on 17/11/2009 @author: markus ''' from grisu.frontend.control.login import LoginManager from grisu.frontend.model.job import JobObject from grisu.model import FileManager import sys si = LoginManager.loginCommandline() print 'Parsing commandline arguments...' file1url = sys.argv[1] file1Name = FileManager.getFilename(file1url) file2url = sys.argv[2] file2Name = FileManager.getFilename(file2url) print 'Creating job...' # create the job object job = JobObject(si) # set a unique jobname job.setTimestampJobname("diff_job") print 'Set jobname to: ' + job.getJobname() # setting the application. this means that grisu can figure out the submission location and # you don't have to do that manually job.setApplication("UnixCommands") # set the commandline that needs to be executed job.setCommandline('diff ' + file1Name + ' ' + file2Name)