- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- a process killing script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2008 11:31 AM
тАО09-11-2008 11:31 AM
Really don't know any scripting. I am in the HP 10.2 enviroment. Writing in Ksh shell. I need to find all process that are defunct and delete them with a script I can put on a cron.
Can any one help.
Thanks,
Phil
Solved! Go to Solution.
- Tags:
- kill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2008 11:43 AM
тАО09-11-2008 11:43 AM
SolutionWell...this may be a headbanger for you.
Defunct processes are also known as zombie processes and as such you need to understand they are *already* dead & can't be killed.
This would only be a problem if the number, mem size or resources these processes hold become constraining.
My 2 cents,
Jeff Schussele
- Tags:
- zombie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2008 11:44 AM
тАО09-11-2008 11:44 AM
Re: a process killing script
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1145648
- Tags:
- zombie master
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2008 11:48 AM
тАО09-11-2008 11:48 AM
Re: a process killing script
You can find "defunct" processes by running 'ps -ef' and grepping for "
That said, trying to kill them isn't going to work. A defunct process is otherwise known as a "zombie". It is already dead, waiting for its parent to reap its termination status before it is removed from the kernel's process table.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2008 09:13 AM
тАО09-13-2008 09:13 AM
Re: a process killing script
http://forums.itrc.hp.com/service/forums/helptips.do?#40
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2008 07:31 AM
тАО09-23-2008 07:31 AM
Re: a process killing script
kill -9 `awk '{print $2}' temp.1`
rm temp.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2008 09:11 AM
тАО09-23-2008 09:11 AM
Re: a process killing script
As I know defunct are called also zombie process which are not able to kill, you can find those process with
# ps ├в aef | grep ├в i defunct
If you see too many defunct process then better reboot the server.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2008 12:13 PM
тАО09-23-2008 12:13 PM