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


Click here to return to the 'another way to get the pid' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
another way to get the pid
Authored by: garbanzito on Jan 24, '02 07:34:55PM
if you're going to have the user choose from a list, why not use the list that ps provides in the first place, then you don't have to grep to find the pid. i put a crude example of this quick & dirty renice. it could be improved, especially if the filename were extracted from the command path. but i think Nicer is pretty nice. it does a couple of other things too.

[ Reply to This | # ]