Beispiel #1
0
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)
Beispiel #2
0
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)
Beispiel #3
0
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()
Beispiel #4
0
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()
Beispiel #5
0
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()
Beispiel #6
0
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()


Beispiel #7
0
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()
Beispiel #8
0
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)
Beispiel #9
0
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()