Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # A small script to keep a laptop cool while running something like an install for a long time
- # in this version it pauses all of the given process by name
- # usage:
- # ./pauser.sh <process name> <pause interval>
- while true; do
- pkill -CONT $1
- sleep 1
- pkill -STOP $1
- sleep $2
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement