ps output

Joshua Isom jrisom at gmail.com
Sun Feb 19 16:06:08 UTC 2012


On 2/19/2012 6:44 AM, RW wrote:
> On Sun, 19 Feb 2012 10:28:29 +0000 (UTC)
> jb wrote:
>
>> Hi,
>>
>> It's fb9-release.
>>
>> Why the other ps entries do not display cron ?
>>
>> $ 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
>>
>
>
> If you grep for cron's pid instead of "cron" you'll see that the
> command is truncated.

Or you can use the -w option twice.  I use it whenever piping to another 
process.



More information about the freebsd-questions mailing list