【发布时间】:2017-03-27 06:16:03
【问题描述】:
“nice”命令返回值为 33。请帮助我理解为什么 nice 将值返回为 33。在某些系统中,将返回值为 0 时它工作得很好,但在系统上它给我的返回值为 33。
nice -n -10 <doing some process here>
returnValue=$?
这里 returnValue 得到一个值 33,尽管是 0。
【问题讨论】:
-
您使用的是哪个外壳?也许
nice是你的shell 的内置命令。或者试试/usr/bin/nice;或者 niced 命令返回 33 -
我正在使用“bash”外壳。我会尝试使用 /usr/bin/nice
标签: linux return-value nice