Hi, I do this : kill -9 `ps -ef | grep finapp |grep -v grep | awk '{print $1}'` or ps -ef | grep finapp |grep -v grep | awk '{print $1}' | xargs kill -9 when there're a group of processes to kill.Hope useful for you. Rivaldi Bahar wrote: >Hi, > >I want to create automatic killing process for an >application. The idea is to get the pid of that process >and then kill -9 that pid. >How to get the pid of a specific program ( let's say >/oraprog/finapp) and then kill that pid ? ( just pid for >that process, --> manually ps -edf | grep finapp | ps -o >pid -- always return 2 pid's). > >Tia. >=========================================================================================== >"Gabung INSTANIA, dapatkan XENIA. Daftar di www.telkomnetinstan.com, langsung >dapat akses Internet Gratis.. >Dan ..ikuti "Instan Smile" berhadiah Xenia,Tour S'pore, Komputer,dll, info hub >: TELKOM Jatim 0-800-1-467826 " >=========================================================================================== >---------------------------------------------------------------- >Please see the official ORACLE-L FAQ: http://www.orafaq.com >---------------------------------------------------------------- >To unsubscribe send email to: oracle-l-request@xxxxxxxxxxxxx >put 'unsubscribe' in the subject line. >-- >Archives are at //www.freelists.org/archives/oracle-l/ >FAQ is at //www.freelists.org/help/fom-serve/cache/1.html >----------------------------------------------------------------- > > > > ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request@xxxxxxxxxxxxx put 'unsubscribe' in the subject line. -- Archives are at //www.freelists.org/archives/oracle-l/ FAQ is at //www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------