This captures the current live stack updates across the API, Linux service scripts, tests, diagnostics, and exported console assets so the Ubuntu deployment can pull a consistent test3 build. Co-authored-by: Cursor <cursoragent@cursor.com>
28 lines
1005 B
Python
28 lines
1005 B
Python
#!/usr/bin/env python3
|
|
import json
|
|
import paramiko
|
|
|
|
HOST, USER, PASS = "10.88.0.3", "eric", "Xiao4669805"
|
|
|
|
def q(cmd):
|
|
c = paramiko.SSHClient()
|
|
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
|
c.connect(HOST, username=USER, password=PASS, timeout=15)
|
|
_, o, e = c.exec_command(cmd, timeout=60, get_pty=True)
|
|
out = (o.read() + e.read()).decode("utf-8", "replace")
|
|
c.close()
|
|
return out
|
|
|
|
for label, cmd in [
|
|
("events_api", "curl -sS -m 20 'http://127.0.0.1:8001/hub/youtube/live/events?limit=20&process=youtube'"),
|
|
("event67", "curl -sS -m 20 'http://127.0.0.1:8001/hub/youtube/live/events/67'"),
|
|
("ffmpeg_ps", "ps aux | grep 'ffmpeg.*rtmps' | grep -v grep"),
|
|
("youtube_ps", "ps -p 3775019 -o lstart,etime,cmd 2>/dev/null || ps aux | grep youtube.py | grep -v grep"),
|
|
]:
|
|
print(f"\n=== {label} ===")
|
|
out = q(cmd)
|
|
try:
|
|
print(json.dumps(json.loads(out), ensure_ascii=False, indent=2)[:12000])
|
|
except Exception:
|
|
print(out[:6000])
|