Add iocaine.sh
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 24 Feb 2012 03:28:40 +0000 (19:28 -0800)
committerColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Fri, 24 Feb 2012 03:29:30 +0000 (19:29 -0800)
A little script to renice / ionice mplayer.

Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>

iocaine.sh [new file with mode: 0755]

diff --git a/iocaine.sh b/iocaine.sh
new file mode 100755 (executable)
index 0000000..a5bd5dd
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash -ex
+
+renice -n -20 -p `pidof mplayer`
+ionice -c 1 -p `pidof mplayer`