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


Click here to return to the 'Create a pidof command to find PID numbers easily' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a pidof command to find PID numbers easily
Authored by: foobar104 on Jun 19, '03 11:11:03AM

I'm not sure what you'd need this for other than to send a "kill" command (which doesn't necessarily kill a program; it just sends one of the defined signals).

If that's your goal, don't mess with this. Just use killall. It's just like kill, only takes a process name as an argument. If you wanted to kill iTunes (why??) you would type "killall iTunes".

As far as I know, killall first appeared in IRIX and then made it over to BSD, but that may not be true. IRIX is where I first encountered it.



[ Reply to This | # ]
Create a pidof command to find PID numbers easily
Authored by: englabenny on Jun 19, '03 11:18:34AM

It did not appear in Mac OS X before Jaguar, however.



[ Reply to This | # ]
Create a pidof command to find PID numbers easily
Authored by: robmorton on Jun 19, '03 11:38:13AM

Scroll down the hints a little farther. Suppose I want to renice and application. I need a process id to do that. Something along these lines, works very nice for renice as well.



[ Reply to This | # ]