Example #1
0
def main(options):
    conf = configFromStream(open('/tmp/machine.conf'))
    runOnElements(conf, '-ss', '-ds')
    runOnElements(conf, '-sql', '-dq')
    try:
        runSingleProgramEx(conf, '${sge.root}/bin/${sge.arch}/qconf -kej ${MY_IP}', None, None)
    except ProgramRunError, err:
        errorPrint(str(err))
Example #2
0
def main(options):
    conf = configFromStream(open('/tmp/machine.conf'))
    runOnElements(conf, '-ss', '-ds')
    runOnElements(conf, '-sql', '-dq')
    try:
        runSingleProgramEx(conf,
                           '${sge.root}/bin/${sge.arch}/qconf -kej ${MY_IP}',
                           None, None)
    except ProgramRunError, err:
        errorPrint(str(err))
Example #3
0
def startUpFromConfigFile(fname):
    """Run startup from a config file"""
    return startUp(configFromStream(open(fname)))
Example #4
0
def main(options):
    conf = configFromStream('/tmp/machine.conf')
    runSystemExC(
        conf, '${sge.root}/bin/${sge.arch}/qconf -aattr queue hotlist %s %s' %
        (sys.argv[1], sys.argv[2]))
Example #5
0
def main(options):
    conf = configFromStream('/tmp/machine.conf')
    runSystemExC(conf, '${sge.root}/bin/${sge.arch}/qconf -aattr queue hotlist %s %s' % (sys.argv[1], sys.argv[2]))
Example #6
0
def shutdownFromConfigFile(fname):
    """Run startup from a config file"""
    return shutdown(configFromStream(open(fname)))
Example #7
0
def startUpFromConfigFile(fname):
    """Run startup from a config file"""
    return startUp(configFromStream(open(fname)))
Example #8
0
def shutdownFromConfigFile(fname):
    """Run startup from a config file"""
    return shutdown(configFromStream(open(fname)))