import argparse import sys from CalcTroll.Core.Submission.Workflow import Workflow parser = argparse.ArgumentParser(\ """Show the result of 'tail -f filename' in the main directory of a running job. The job chosen will be the one running from the current working directory. """) parser.add_argument("filename", nargs='?') args = parser.parse_args() host = Workflow().host() host.tailJob(args.filename)
import argparse import sys from CalcTroll.Core.Submission.Workflow import Workflow parser = argparse.ArgumentParser(\ """Show the result of 'cat filename' in the main directory of a running job. The job chosen will be the one running from the current working directory. """) parser.add_argument("filename", nargs='?') args = parser.parse_args() host = Workflow().host() host.catJob(args.filename)
import argparse from CalcTroll.Core.Submission.Workflow import Workflow parser = argparse.ArgumentParser("""Cancel all jobs that are current queued.""") parser.parse_args() host = Workflow().host() host.cancelQueued()
import argparse from CalcTroll.Core.Submission.Workflow import Workflow host = Workflow().host() parser = argparse.ArgumentParser(\ """Cancel all jobs running from subfolders of the current working directory. Before cancellation all files will be transferred to the home drive of the remote machine.""") parser.parse_args() host.cancelJobs()
import argparse from CalcTroll.Core.Submission.Workflow import Workflow parser = argparse.ArgumentParser(\ "Report all running jobs in the subfolders of the current working directory.") parser.parse_args() host = Workflow().host() host.whatIsRunning()
import argparse from CalcTroll.Core.Submission.Workflow import Workflow parser = argparse.ArgumentParser(\ "Show the result of performing 'ls -lhtr' in the running directory a job. " +\ "'ls' will be performed on the job matching the current working directory.") parser.parse_args() host = Workflow().host() host.lsJob()
import argparse from CalcTroll.Core.Submission.Workflow import Workflow parser = argparse.ArgumentParser("Show the the submitted jobs for your current host.") parser.parse_args() host = Workflow().host() host.writeSubmitted()
import argparse from CalcTroll.Core.Submission.Workflow import Workflow parser = argparse.ArgumentParser(\ """Copy all jobs running from subfolders of the current working directory. All files will be copied to the the remote machine data folder from the submitted jobs.""") parser.add_argument("filename", nargs='?') args = parser.parse_args() host = Workflow().host() host.copyJob(args.filename)
import argparse from CalcTroll.Core.Submission.Workflow import Workflow parser = argparse.ArgumentParser( """Cancel all jobs running from subfolders of the current working directory. All files from the running jobs will be completely removed.""" ) parser.parse_args() host = Workflow().host() host.removeJobs()