Guest User

Untitled

a guest
Nov 14th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #!/usr/bin/env python3
  2. from subprocess import run
  3.  
  4.  
  5. print("Limit CPU Usage Of A Running Process \n")
  6.  
  7. pid = input("PID:")
  8. limit = input("Limit:")
  9.  
  10. run(["cpulimit", "-l", limit, "-p" pid, "&"])
Add Comment
Please, Sign In to add comment