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))
def startUpFromConfigFile(fname): """Run startup from a config file""" return startUp(configFromStream(open(fname)))
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]))
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]))
def shutdownFromConfigFile(fname): """Run startup from a config file""" return shutdown(configFromStream(open(fname)))