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>
27 lines
1.1 KiB
Python
27 lines
1.1 KiB
Python
#!/usr/bin/env python3
|
|
import paramiko
|
|
import sys
|
|
|
|
HOST, USER, PASS = "10.88.0.3", "eric", "Xiao4669805"
|
|
|
|
def run(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=180, get_pty=True)
|
|
out = (o.read() + e.read()).decode("utf-8", "replace")
|
|
c.close()
|
|
return out
|
|
|
|
cmds = [
|
|
"echo Xiao4669805 | sudo -S grep '正在录制 1 路' /root/.pm2/logs/youtube-out.log | grep '原画 2:05:' | tail -20",
|
|
"echo Xiao4669805 | sudo -S grep '正在录制 1 路' /root/.pm2/logs/youtube-out.log | grep '2026-06-24T07:' | tail -25",
|
|
"echo Xiao4669805 | sudo -S grep '正在录制 1 路' /root/.pm2/logs/youtube-out.log | grep '2026-06-24' | grep -E '原画 2:0[4-6]:' | tail -30",
|
|
"echo Xiao4669805 | sudo -S grep '正在录制 1 路' /root/.pm2/logs/youtube-out.log | grep '2026-06-24T06:' | grep -E '原画 2:' | tail -20",
|
|
]
|
|
|
|
for cmd in cmds:
|
|
print("===", cmd[:90], "===")
|
|
sys.stdout.buffer.write(run(cmd).encode("utf-8", "replace")[:15000])
|
|
print()
|