Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
64
def
main():
65
cmd_list = [
"sleep 30"
]
66
cmd_list.extend([
"&&"
,
"ls"
])
67
call_process_with_timeout(cmd_list, shell=True)
68
69
70
if
__name__ ==
'__main__'
:
Callers
1
python-call-process-with-timeout.py
File · 0.70
Calls
1
call_process_with_timeout
Function · 0.85
Tested by
no test coverage detected