In trying to determine how to kill off processes created by an application
quickly, I came up with the following command that seems to work... 

BEFORE using xargs to kill an application, test it as follows

ps -ef | grep ptc ps -ef | grep ptc | xargs echo `awk '{print $2 }'` verify that the pid's listed in the first command match the pid's in the second. If more shows up then the specific application, then you want to be more specific, test until only the processes you wish to terminate are listed.

the use of xargs with the kill command

to kill off all processes associated with "ptc": ps -ef | grep ptc | xargs kill -9 `awk '{print $2 }'`
to kill off all processes associated with "oli": ps -ef | grep oli | xargs kill -9 `awk '{print $2 }'`
to kill off all processes associated with "etscape": ps -ef | grep etscape | xargs kill -9 `awk '{print $2 }'`
---------------------------------------------
Fundamental Issues
---------------------------------------------
  • the Bible on line
  • What must I do to be saved?
  • Steps to peace with God.
  • BELIEVE THIS!
  • BIBLE passages and books
    ---------------------------------------------
  • So if it's not sunny in Snohomish, where is it SUNNY?

  • winter storm 96/97
  • AMSOIL information
  • Full Size Jeeps
  • downsized Jeeps
  • Diesel Benz info
  • wagoneers.com