Public paste
This freezes in some PyCharms
By: clayote | Date: Mar 18 2022 00:12 | Format: Python | Expires: never | Size: 306 B | Hits: 123

  1. import subprocess
  2. import sys
  3.  
  4. p0 = subprocess.Popen(['xsel', '--version'], stdout=sys.stdout)
  5. p0.wait()
  6. p1 = subprocess.Popen(['uname', '-a'], stdout=sys.stdout)
  7. p1.wait()
  8. print("About to run xsel proper")
  9. p = subprocess.Popen(['xsel'], stdout=subprocess.PIPE)
  10. p.communicate()
  11. print("All done")
  12.  
Latest pastes
2 days ago
2 days ago
4 months ago
6 months ago
6 months ago