subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def check_ollama_running() -> bool: """检查 Ollama 是否在运行""" result = subprocess.run( "tasklist | findstr ollama", shell=True, capture_output=True, text=True )- Confidence
- 95% confidence
- Finding
- result = subprocess.run( "tasklist | findstr ollama", shell=True, capture_output=True, text=True )
