Skip to content

Instantly share code, notes, and snippets.

Created November 3, 2022 21:44
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save MaZderMind/20441b7d7a3027c5318b59158bb2f30f to your computer and use it in GitHub Desktop.
Apple Compressor Hangs
import subprocess
proc = subprocess.Popen(['/Applications/', '-monitor'], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, stdin=subprocess.DEVNULL)
while True:
c =
print(c) # prints up to the last '\n'
# never gets here
# also just hangs forever
# subprocess.check_output(['/Applications/', '-monitor'], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, stdin=subprocess.DEVNULL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment