linux - In which condition "nice" command's return value will be 33? -
"nice" command returning value 33. please me understand why nice returning value 33. in systems works fine giving return value 0 on system gives me return value 33.
nice -n -10 <doing process here> returnvalue=$?
here returnvalue gets value 33 in spite of 0.
it looks nice(1)
returning exit code of niced command*. try
nice bash -c 'exit 13' ; echo $?
and 13. niced command got exit
code of 33. can't tell how that happen, because don't tell command nicing. btw, shells might have nice builtin might use explicitly /usr/bin/nice
instead of nice
note *: when nice
fails (e.g. nice -n -12 id
without being root), says stderr
exit 0
Comments
Post a Comment