MCPcopy Create free account
hub / github.com/huangruiteng/CS-Notes / main

Function main

Notes/snippets/python-call-process-with-timeout.py:64–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 return False
63
64def main():
65 cmd_list = ["sleep 30"]
66 cmd_list.extend(["&&", "ls"])
67 call_process_with_timeout(cmd_list, shell=True)
68
69
70if __name__ == '__main__':

Calls 1

Tested by

no test coverage detected