Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Feb 2012 10:05:51 -0600
From:      Joshua Isom <jrisom@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: ps output
Message-ID:  <4F411DDF.9020406@gmail.com>
In-Reply-To: <20120219124433.5a297d0f@gumby.homeunix.com>
References:  <loom.20120219T110939-40@post.gmane.org> <20120219124433.5a297d0f@gumby.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.




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