DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: kill -9 process

  1. #1
    Join Date
    Oct 2007
    Posts
    114

    kill -9 process

    Hi,

    Linux OS
    Ora10g DB

    I have some processes in Orace Apps that is sometimes get hung and becomes a runaway (zombie).

    I want to create a script that regularly cleans up the process using kill -9
    and put it in a crontab to run it every hour on top of the hour.

    The owner of the process is user "applmgr", so the script looks like this:

    ps -ef|grep "applmgr"|awk (get the PID)| kill -9

    I saw some script like this before but I forgot the exact syntax.

    Can you help me please.

    Thanks
    Last edited by reeshe; 07-14-2008 at 10:46 PM.

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    man awk - try writing it yourself

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width