Knowns and Unknowns

Tuesday, January 17, 2012

Find a process and kill it in a script in Linux

ps -ef | grep process_name | awk '{ print $2; }'| xargs kill -9
Posted by ChiMaster at 11:24 AM
Labels: Linux

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2014 (4)
    • ►  July (2)
    • ►  April (2)
  • ►  2013 (1)
    • ►  June (1)
  • ▼  2012 (3)
    • ►  July (1)
    • ►  February (1)
    • ▼  January (1)
      • Find a process and kill it in a script in Linux
  • ►  2011 (2)
    • ►  April (1)
    • ►  March (1)
  • ►  2010 (19)
    • ►  November (3)
    • ►  October (1)
    • ►  September (2)
    • ►  August (7)
    • ►  July (2)
    • ►  June (2)
    • ►  May (1)
    • ►  April (1)
  • ►  2009 (4)
    • ►  May (1)
    • ►  April (3)
  • ►  2008 (10)
    • ►  December (1)
    • ►  November (1)
    • ►  May (4)
    • ►  April (1)
    • ►  February (3)
  • ►  2007 (1)
    • ►  August (1)

My Favorite Sites

  • Computer Science Video Tutorials
  • Stanford EE282 Computer System Architecture
  • Stanford EE108b Digital System II
  • Stanford CS Eductation Library

Contributors

  • ChiMaster
  • TaroJie

Counters

free counters

Powered by Blogger.