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>
34 lines
1.2 KiB
Python
34 lines
1.2 KiB
Python
#!/usr/bin/env python3
|
|
import paramiko
|
|
|
|
HOST, USER, PASS = "10.88.0.3", "eric", "Xiao4669805"
|
|
|
|
REMOTE = r'''
|
|
import subprocess, re
|
|
|
|
def run(cmd):
|
|
return subprocess.check_output(cmd, shell=True, text=True, errors='replace')
|
|
|
|
for cmd in [
|
|
"journalctl -u live-console.service --since '2026-06-24 04:30' --until '2026-06-24 08:30' 2>/dev/null | grep -E '正在录制|live.douyin.com/[0-9]|录制 1 路|YOUTUBE' | tail -80",
|
|
"journalctl --since '2026-06-24 04:30' --until '2026-06-24 08:30' 2>/dev/null | grep -E 'youtube.py|正在录制|live.douyin.com/[0-9]{6,}' | tail -80",
|
|
"ls -la /proc/3775019/fd 2>/dev/null | head -20",
|
|
"readlink /proc/3775019/fd/1 /proc/3775019/fd/2 2>/dev/null",
|
|
]:
|
|
print('===', cmd[:100], '===')
|
|
try:
|
|
print(run(cmd)[:12000])
|
|
except Exception as e:
|
|
print('ERR', e)
|
|
'''
|
|
|
|
def main():
|
|
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(f"python3 - <<'PY'\n{REMOTE}\nPY", timeout=180, get_pty=True)
|
|
print((o.read()+e.read()).decode('utf-8','replace')[:25000])
|
|
c.close()
|
|
|
|
if __name__ == '__main__':
|
|
main()
|