#!/usr/bin/env python3 import subprocess import sys cmd = ["python3", "/opt/ai-os/products/ceo/brand-monitoring/shared/workflows/sentinel_check.py"] res = subprocess.run(cmd, capture_output=True, text=True) if res.stdout: print(res.stdout, end="") if res.stderr: print(res.stderr, file=sys.stderr, end="") sys.exit(res.returncode)