Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'where do I find renice?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
where do I find renice?
Authored by: ExecutiveEditor on Jan 20, '02 01:04:28PM

Which version of OS X are you using? I think I remember something here on Mac OS X Hints that indicated nice/renice wasn't available before 10.1.



[ Reply to This | # ]
where do I find renice?
Authored by: strummer on Jan 20, '02 04:13:43PM

I have the current 10.1.2
is it part of the developer's tools?
because I haven't loaded that yet.
thanks
cheers,
brian



[ Reply to This | # ]
where do I find renice?
Authored by: ExecutiveEditor on Jan 20, '02 09:08:17PM

I wouldn't think so, but I'm not sure. I have the Developer Tools installed on both my Mac at work and the one at home, so I can't check. Sorry.



[ Reply to This | # ]
where do I find renice?
Authored by: babbage on Jan 21, '02 01:53:22PM
If you need to find where a command is, always give "which" a try first. This will give you the instance of the program that shows up first in your path (thus if you have a bunch of custom stuff in /usr/local/bin and some of it overrides default stuff in /usr/bin or /bin, then you'll get whichever version shows up first in your path:
% which renice
/usr/bin/renice
% env | grep '^PATH'
PATH=/usr/X11R6/bin:/sw/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sw/sbin:/Users/chris/bin/powerpc-apple-darwin:/Users/chris/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/X11R6/bin
% 

If I remember correctly, the nice & renice commands were installed as far back as the Public Beta, but the Darwin kernel didn't acknowledge run level change requests until 10.1. Before that you could run the command, but it didn't really do anything.

[ Reply to This | # ]

where do I find renice?
Authored by: barrysharp on Jan 21, '02 04:37:19PM

...also if one is using the Shell /bin/sh then one can use the Shell's (/bin/sh) built-in command 'type'.

Thus

> type renice
renice is: /usr/bin/renice

> type type
type is an exported alias for 'whence -v'

> whence -v renice
renice is a tracked alias for /usr/bin/renice

> whence -v type
type is a shell builtin


Mind you, type ONLY works if '/usr/bin' is defined in the PATH enviroment variable. If '/usr/bin' not defined in PATH then what you would see is

> type renice
renice not found

Hope this helps explains some additional background.

Regards... Barry Sharp



[ Reply to This | # ]