Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def startAdmin(args):
	mystdout,old_stdout = util.redirectStdout()
	machine = args[0]
	domain = args[1]
	domainhome = ''
	port = search.getMachineAgentPort(machine)
	try:
		domainhome = search.getDomainHome(machine,domain)
		if not domainhome :
			raise Exception("%s is not resigtered !" % domain)
		agent = agentclient(host=machine,port=port)
		agent.connect()
		agent.startAdmin(domainhome)
		print ""
	except Exception as e:
		traceback.print_exc()
		print "startAdmin invoke failed on %s " % machine
		print e

	util.finishRedirectStdout(old_stdout)
	return util.encode_output(mystdout.getvalue())
        


src/w/l/wlnm-1.0.1/wlnm/wlnsd.py   wlnm(Download)
def startAdmin(args):
	return server.startAdmin(args)
 
def startServer(args):
	return server.startServer(args)