Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Feb 2012 12:46:54 -0600 (CST)
From:      Robert Bonomi <bonomi@mail.r-bonomi.com>
To:        freebsd-questions@freebsd.org, jb.1234abcd@gmail.com
Subject:   Re: ps output
Message-ID:  <201202191846.q1JIks7m089565@mail.r-bonomi.com>
In-Reply-To: <loom.20120219T110939-40@post.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> From owner-freebsd-questions@freebsd.org  Sun Feb 19 04:35:10 2012
> To: freebsd-questions@freebsd.org
> From: jb <jb.1234abcd@gmail.com>
> 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"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202191846.q1JIks7m089565>