import subprocess, os, glob, time, struct def mem_open(pid): return os.open(f'/proc/{pid}/mem', os.O_RDONLY) def find_host(proc, wait=120): t0=time.time() while time.time()-t0/dev/null; pkill -9 -f '[y]abridge' 2>/dev/null; sleep 1") proc=subprocess.Popen(['/usr/bin/reaper','-nosplash','-ignoreerrors','-renderproject','/home/m/soothe-bt/dual300.rpp'], stdout=open('/dev/null','w'),stderr=subprocess.STDOUT) host=find_host(proc); print('host',host) time.sleep(4) fd=mem_open(host) SIG=struct.pack('