--=-7iCOslUU6tAOJadClrQ+ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2001-11-14 at 22:59, John (EBo) David wrote: > Carl Parrish wrote: > >=20 > > Okay is there any way to kill a process by name? Since I've update to R= H > > 7.2 I been noticing that I had problems with mozilla or other apps. > > Today I finally thought to check for java_vm processes. there are > > *hundres* of them they aren't dying I don't know if that's just because > > I have so much memory the garbage collector simply isn't clearing them > > or what but I want them dead and I don't wont to have to type in ever > > process number. is there a way I can just say kill all java_vm processe= s? >=20 > well, I would first start with "ps -a | grep java" then send that output > through a simple awk script to extract the PID's and feed those to "kill > $PID". It has been a littlewhile since I had to write one of these and > would take me more time than I have at his very moment, but there is a > pointer ;-) =20 >=20 > A good place to look at scripts used in /etc/rc.* (or on SuSE=20 > /etc/init.d). What i use if I am killing a user from a system ps -ef |grep |awk '{ print $2 }' |xargs kill -9 this will kill all procs being run by you can put what ever you want in the and kill other things includeing proc names. if you just want to kill the java_vm procs though killall -9 java_vm should do fine Bill Warner >=20 > Hope this helps. >=20 > EBo -- > ________________________________________________ > See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't p= ost to the list quickly and you use Netscape to write mail. >=20 > PLUG-discuss mailing list - PLUG-discuss@lists.PLUG.phoenix.az.us > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --=20 Bill Warner Unix/Linux Admin. Direct Alliance Corporation Company required stuff: Contents are Direct Alliance Corporation Confidential This message is for the designated recipient(s) only and contains Direct Alliance Corporation privileged and confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this email is prohibited. --=-7iCOslUU6tAOJadClrQ+ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEABECAAYFAjvz7voACgkQI1354xE6NpRz5gCg4ZP/amC4eRWfp63lu2gKJrKZ unoAnAxTIY4ANphYFtIpUuhOmT/vFRAO =IQly -----END PGP SIGNATURE----- --=-7iCOslUU6tAOJadClrQ+--