I just wrote a small script to send a job (under LINUX-like systems) with priority 19 (like using the command renice after sending it).
The script is based on the true command nice, not on the one included in most of the shells which is almost not configurable.
This is the script:
#!/bin/bash
# send a job with priority 19
#
# niced
# Author: Roberto Lineros
# Date: May 25, 2011
if [ $# -eq 0 ]; then
echo "niced: none argument has been passed"
exit 1
fi
prior="-n 19"
# IFIC's scientific linux
pa="/bin/nice"
if [ -a $pa ]; then
$pa $prior $@
exit 0
fi
# UBUNTU
pa="/usr/bin/nice"
if [ -a $pa ]; then
$pa $prior $@
exit 0
fi
# in principle more LINUX OS can be added :)
and it works on IFIC's scientific linux and Ubuntu-like systems.
(To install it: save the script in a textfile named niced, copy it on your executable path and change its properties with chmod +x niced to be executable)
:)


