MCPcopy Create free account
hub / github.com/adobe/Marinus / is_running

Function is_running

python3_cron_scripts/get_censys_files.py:42–51  ·  view source on GitHub ↗

Is the provided process name is currently running?

(process)

Source from the content-addressed store, hash-verified

40
41
42def is_running(process):
43 """
44 Is the provided process name is currently running?
45 """
46 proc_list = subprocess.Popen(["ps", "axw"], stdout=subprocess.PIPE)
47 for proc in proc_list.stdout:
48 if re.search(process, str(proc)):
49 return True
50
51 return False
52
53
54def download_file(logger, url):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected