Try this? ps aux|fgrep acheng@ttyp3
On Mon, Aug 06, 2012 at 10:56:00AM +0800, Alan Cheng wrote: > Hello all, > > I'd like to kill an stale user session, but could not find a way to do > that. Seems like there is no process attached to that ttyp4 any more. It's > an OpenBSD 5.1 on i386, by the way. > > Any advice appreciated. > > some output, more will be provided if necessary. > > #w > 7:44PM up 12 days, 23:19, 2 users, load averages: 0.10, 0.14, 0.18 > USER TTY FROM LOGIN@ IDLE WHAT > acheng p0 180.116.63.38 6:00PM 0 w > acheng p4 114.227.123.110 27Jul12 9days - > <-- the one I'd like to kill > > ------------------------------------------------------------------------------------------------------------ > #ps -t p4 > PID TT STAT TIME COMMAND > > > thanks. > acheng