Use alternate method
This commit is contained in:
parent
3f731a4bd3
commit
43694ca97d
4
run.py
4
run.py
@ -1119,10 +1119,10 @@ def setup_client(pool):
|
|||||||
fprint("VM online.")
|
fprint("VM online.")
|
||||||
# Windows client setup
|
# Windows client setup
|
||||||
fprint("Running full jukebox control system...")
|
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)
|
jb = subprocess.Popen("ssh root@192.168.1.25 -t -- /root/jukebox-software/run.sh".split(' '), stdout=subprocess.PIPE, stderr=subprocess.STDOUT, bufsize=1, universal_newlines=True)
|
||||||
while True:
|
while True:
|
||||||
line = jb.stdout.readline() # Alternatively proc.stdout.read(1024)
|
line = jb.stdout.readline() # Alternatively proc.stdout.read(1024)
|
||||||
if len(line) == 0:
|
if len(line) == 0: # program end
|
||||||
break
|
break
|
||||||
print(line, end='')
|
print(line, end='')
|
||||||
if line.find("Running mode: Idle") > 0:
|
if line.find("Running mode: Idle") > 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user