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

  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
56 minutes ago
10 hours ago
1 days ago
2 days ago
2 days ago