Thanks to:
fpardo@tisny.com (Frank Pardo)
"Reggie Stuart" <Reggie_Stuart_at_~ISTG2__PO@smtpinet.aspensys.com>
Rich Kulawiec <rsk@itw.com>
"Hanna, Brian" <Brian.Hanna@dataserv.com>
"David Evans" <djve@deakin.edu.au>
Original question:
> I'm teaching myself all the wonders of administration of a Sun Sparc-20
> running Solaris 2.5. To make a long story short, I'm needing to figure
> out how to kill off processes that never seem to die if an internet user
> stops a transfer mid-stream. The processes have 'oraperl' and 'in.ftpd'
in them.
I got some VERY good information from these guys. I learned a lot from the
wonderful descriptions they provided of the solutions they sent. I ended
up using the one offered by Brian Hanna even though Rich Kulawiec offered
almost the same thing. Brian's was a bit shorter to type in, though. This
solution was a single line script of:
ps -ef | egrep "oraperl|in.ftpd" | awk '{print $5, $2}' |egrep -v '^[0-9]' |
cut -f2 -d' ' | xargs kill
He also offered that changing 'xargs kill' to 'xargs echo kill' allowed me
to test the script to see that the ID's were proper before actually killing
them.
David Evans mentioned 'trussing' the processes. Yet another bit of
knowledge I've added to my list to learn. I'll use that to figure out
exactally what is wrong with the processes when I 'fix them right.'
----------
Bob Woodward, Seattle FilmWorks (bobw@filmworks.com)
Data Processing Department
Visit our Web Site to learn about getting your pictures via downloads on
the Internet!
Point your browser to "http://www.filmworks.com".
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:14 CDT