From owner-freebsd-questions Tue Aug 14 14:50: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mtiwmhc23.worldnet.att.net (mtiwmhc23.worldnet.att.net [204.127.131.48]) by hub.freebsd.org (Postfix) with ESMTP id 60B5337B401 for ; Tue, 14 Aug 2001 14:49:57 -0700 (PDT) (envelope-from parv@worldnet.att.net) Received: from worldnet.att.net ([32.100.199.151]) by mtiwmhc23.worldnet.att.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010814214953.JOAS8490.mtiwmhc23.worldnet.att.net@worldnet.att.net> for ; Tue, 14 Aug 2001 21:49:53 +0000 Received: by worldnet.att.net (Postfix, from userid 1001) id 374FD50D30; Tue, 14 Aug 2001 17:49:08 -0400 (EDT) Date: Tue, 14 Aug 2001 17:49:08 -0400 From: parv To: f-q Subject: Re: ps -l: now it's there, now it's not. Message-ID: <20010814174908.A50818@moo.holy.cow> Mail-Followup-To: f-q References: <20010814164507.A46533@moo.holy.cow> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010814164507.A46533@moo.holy.cow>; from parv_@yahoo.com on Tue, Aug 14, 2001 at 04:45:07PM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG this was, on the fateful occasion around Aug 14 16:45 -0400, sent by parv > > hi, > > i have sshd running all the time binded to localhost & sometimes ssh > to forward port. a few days ago, i used to get output, as a regular > user, for... > > # ps -lax | egrep TIME|ssh' | grep -v grep > UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME COMMAND > 0 227 1 0 2 0 2200 1152 select Is ?? 0:00.02 /usr/sbin/sshd > > ...now i get only the header. however i do get the sshd in the output > if i run the above command as root, or as a regular user, use -u > option w/ or w/o -l option. > > ps(1) didn't help me to understand the behaviour. > > what am i missing? > w/ some experimentation w/ -O option, "wchan" keyword present in the -l option seemed to make sshd not show up for regular user. this option, used w/ -a -x, seems to fill the gaps of -j, -l, and -u ... -O user,ppid,nice,%cpu,%mem,vsz,rss anyway, can anybody tell me what's special about "wchan" and its interaction w/ regular user's usage of ps? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message