Created
February 28, 2013 15:35
-
-
Save rietta/5057592 to your computer and use it in GitHub Desktop.
Have a shell script always run with a nice, low priority
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/nice /bin/bash | |
# | |
# Your script goes here.... | |
# | |
# Now when this script is run from the command line as ./run_as_nice.sh, it will execute with lower | |
# priority to avoid causing the load average to spike as much. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I got tired of always typing:
nice backups.sh
:-)