When I use communicate() the script hangs, just like when I use stdout.read()...
This is the script:
This is the script:
p = subprocess.Popen(['vlc -I oldrc --rc-unix=/home/user/Documents/Sockets/socket1.sock'], shell = True, stdout = subprocess.PIPE, stderr = subprocess.PIPE) out, err = p.communicate() p = subprocess.Popen(['echo enqueue /home/user/Documents/DualscreenVLC/videos/MVI_2534.MP4 } nc -U /home/user/Documents/Sockets/socket1.sock'], shell = True, stdout = subprocess.PIPE, stderr = subprocess.PIPE) out, err = p.communicate()I can try upgrading to python 3.5 tomorrow but it maybe it is related to the operating system as I am not finding this issue anywhere else...