Use alternate method

This commit is contained in:
Cole Deck 2024-08-06 17:30:41 -05:00
parent 419498cae6
commit 3f731a4bd3

5
run.py
View File

@ -1120,7 +1120,10 @@ def setup_client(pool):
# Windows client setup
fprint("Running full jukebox control system...")
jb = subprocess.Popen("ssh root@192.168.1.25 -- /root/jukebox-software/run.sh".split(' '), stdout=subprocess.PIPE, stderr=subprocess.STDOUT, bufsize=1, universal_newlines=True)
for line in jb.stdout:
while True:
line = jb.stdout.readline() # Alternatively proc.stdout.read(1024)
if len(line) == 0:
break
print(line, end='')
if line.find("Running mode: Idle") > 0:
# Jukebox started