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

Nitpicks | 7 comments | Create New Account
Click here to return to the 'Nitpicks' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Authored by: thrig on May 30, '06 09:38:40AM
Two nitpicks. First: the KILL signal does not allow applications to cleanup after themselves (temporary files, sockets, child processes). kill -9 should only be used as a very last resort, or when dealing with applications known to freeze up. Second, grep ... | awk ... usually can be rewritten without the grep:
ps axco pid,command | awk '/Finder/{ print $1 }' | xargs kill
On other systems, the handy pgrep and pkill commands may replace the above. killall also works. However, be sure to consult the manual for killall before using it. Some vendors require different arguments to killall that may result in more processes being killed than expected (e.g. on Solaris).

[ Reply to This | # ]