From owner-freebsd-questions@FreeBSD.ORG Sun Feb 19 18:41:59 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4C40106564A for ; Sun, 19 Feb 2012 18:41:59 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (mx-out.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id 7A0818FC13 for ; Sun, 19 Feb 2012 18:41:59 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id q1JIks7m089565; Sun, 19 Feb 2012 12:46:54 -0600 (CST) Date: Sun, 19 Feb 2012 12:46:54 -0600 (CST) From: Robert Bonomi Message-Id: <201202191846.q1JIks7m089565@mail.r-bonomi.com> To: freebsd-questions@freebsd.org, jb.1234abcd@gmail.com In-Reply-To: Cc: Subject: Re: ps output X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Feb 2012 18:41:59 -0000 > From owner-freebsd-questions@freebsd.org Sun Feb 19 04:35:10 2012 > To: freebsd-questions@freebsd.org > From: jb > Date: Sun, 19 Feb 2012 10:28:29 +0000 (UTC) > Subject: ps output > > Hi, > > It's fb9-release. > > Why the other ps entries do not display cron ? Add a 'ww' -- yes, -two- 'w' characters -- to the ps switches, and see what happens. Now append the pid, '1877' to the end of the ps switches, and try the various ps commands with and without 'ww' specified. Enlightenment will follow. > > $ top > ... > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > 1897 root 1 20 0 9644K 1208K nanslp 0 0:03 0.00% cron > ... > > $ ps -ax |grep cron > 1897 ?? Is 0:03.16 /usr/sbin/cron -s > 62278 1 S+ 0:00.01 grep cron > $ ps -a |grep cron > 62337 1 S+ 0:00.00 grep cron > $ ps -aux |grep cron > > man ps > -x When displaying processes matched by other options, include pro- > cesses which do not have a controlling terminal. > > jb > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >