|
-
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.
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|