MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / RunWithRetunCode

Function RunWithRetunCode

tools/deploy.py:34–45  ·  view source on GitHub ↗
(command)

Source from the content-addressed store, hash-verified

32 return False
33
34def RunWithRetunCode(command):
35 try:
36 p = subprocess.Popen(command, stdout = subprocess.PIPE, stderr = subprocess.PIPE, shell = True)
37 output = p.stdout.read()
38 p.wait()
39 errout = p.stderr.read()
40 p.stdout.close()
41 p.stderr.close()
42 return p.returncode,output,errout
43 except Exception,ex:
44 print(ex)
45 return -1,None,None
46
47def GetPrefixAndSuffix(host):
48 is_local = CheckLocalHost(host)

Callers 6

InitEnvFunction · 0.85
CheckJavaFunction · 0.85
DeployJavaFunction · 0.85
DeployZookeeperFunction · 0.85
DeployNameserverFunction · 0.85
DeployTabletFunction · 0.85

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected