MCPcopy Create free account
hub / github.com/comaps/comaps / exec_command

Method exec_command

tools/python/test_server/server/SiblingKiller.py:175–180  ·  view source on GitHub ↗
(self, command)

Source from the content-addressed store, hash-verified

173 return None
174
175 def exec_command(self, command):
176 logging.debug(f">> {command}")
177 p = Popen(command, shell=True, stdout=PIPE, stderr=PIPE, text=True)
178 output, err = p.communicate()
179 p.wait()
180 return output

Callers 3

killMethod · 0.95
isListenOnPortMethod · 0.95
ps_dash_wMethod · 0.95

Calls 1

waitMethod · 0.80

Tested by

no test coverage detected