# Read stdout and stderr of tarp
errmsg = b""
while tarp.poll() == None:
rd,wr,ex = select.select([tarp.stdout, tarp.stderr], [], [], 0.05)
# Read stdout and stderr of tarp
errmsg = b""
while tarp.poll() == None:
rd,wr,ex = select.select([tarp.stdout, tarp.stderr], [], [], 0.05)