Bash tricks:

automatically run nice
renice +15 -p $$ >/dev/null 2>&1
redirect output to stderr
echo hi >&2
Note that the old >/dev/stderr and >>/dev/stderr don't work in devfs or when pty permissions change. >&2 works in devfs and non-devfs, probably when pty permissions change too.