[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to kill obsolete pts/n processes was 'how to kill old screen sessions'



justin cunningham wrote:

> Hi, I need to reclaim some of my pts/...  that aren't showing up using
> ps -lots-of-different-options but are showing up with who.  How do I do
> this?

How about,

	# killall `ps ax | grep pts | grep -v grep | awk '{print $1};'`

Ciao,
Viktor
-- 
Viktor Rosenfeld
WWW: http://www.informatik.hu-berlin.de/~rosenfel/

Attachment: pgpV6Tq021Uj4.pgp
Description: PGP signature


Reply to: