1829829 Members
2007 Online
109993 Solutions
New Discussion

Dead process

 
O'lnes
Regular Advisor

Dead process

I am new to UNIX. I've a problem here.
There is a script specially written by my ex-colleague for operations
team to check our server/jobs via menu-driven style. Somehow this
generates lots of dead processes although the user has logged of from
the system. Below is the sample.
penoasisd1o20:root> ps -ef|grep sysoper
sysoper 2893 22062 0 08:07:24 pts/20 0:00 /usr/bin/sh
/usr/bin/clear
sysoper 14534 14482 1 Dec 28 pts/17 127:14 -rksh
sysoper 9498 23001 1 Dec 26 pts/13 210:00 -rksh
sysoper 2869 15733 0 08:07:24 pts/15 0:00 tr [a-z] [A-Z]
sysoper 8795 2913 1 Dec 20 pts/5 586:20 -rksh
sysoper 10421 10293 0 Dec 22 pts/8 0:00 -rksh
sysoper 2914 2908 0 08:07:24 pts/17 0:00 /usr/bin/sh
/usr/bin/clear
sysoper 29044 28989 1 Dec 30 pts/16 77:30 -rksh
sysoper 2901 14702 0 08:07:24 pts/8 0:00 -rksh
sysoper 2922 2918 0 0:00
sysoper 2919 2915 0 0:00
This affects my alert email job which I schedule to send on regular
basis. I will not receive any email. However I notice that when I kill
those dead processes, I immediately receive the emails. I wonder
anyone there has any similar experience on this.

Also, pls share with me a script to auto kill this dead process, eg
kill -9 2893 14534 9498 ....

thanks in advance
Andy
5 REPLIES 5
O'lnes
Regular Advisor

Re: Dead process

Hi all,

Does anyone has existing script for me to reference? thx. the send email function can be ignore, if it can kill the dead processes is OK. thx.
Andy
Michael Tully
Honored Contributor

Re: Dead process

Hi,

I am fairly sure that the script your using is perhaps not good and does not do the job it was intended to do.
At a guess (because I don't know exactly what your script does) it is waiting for something to happen. Once one of the processes dies (you killing it) it proceeds and sends the email.

There are a number of ways to to implement automatic kill scripts, however unless we know exactly what you want to kill, it is a little hard to advise. Do you log in as this "sysoper" user?

Regards
Michael
Anyone for a Mutiny ?
Michael Tully
Honored Contributor

Re: Dead process

This posting has a few kill scripts. One of them may be suitable for you.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x026250011d20d6118ff40090279cd0f9,00.html
Anyone for a Mutiny ?
O'lnes
Regular Advisor

Re: Dead process

Hi Michael Tully,

I didn't find any suitable for me.

does anyone has sample script? thx.
Andy
V. Nyga
Honored Contributor

Re: Dead process

Hi O'lnes

if you always have the same user you can change my script for this. But if you have different users the link of Michael is the best solution for your problem. Here you would find several programs for that.

Volkmar
*** Say 'Thanks' with Kudos ***