can we sort process by old dates

Kaushal Shriyan kaushalshriyan at gmail.com
Tue Jul 25 08:37:34 UTC 2006


On 7/25/06, Paul Howarth <paul at city-fan.org> wrote:
> On Tue, 2006-07-25 at 13:06 +0530, Kaushal Shriyan wrote:
> > HI ALL,
> >
> > i would like to kill old process by jull22
> > i m making one shell scripts let us know how will u trace the process.
> >
> > nobody   29966  0.0  1.9 84552 39540 ?       S    Jul22   0:00
> > /usr/local/apache/bin/fcgi- -DSSL
> > nobody   29973  0.3  2.6 133652 54576 ?      S    Jul22   2:43
> > /usr/local/apache/bin/httpd -DSSL
> > nobody   29974  0.3  2.5 132780 53812 ?      S    Jul22   2:31
> > /usr/local/apache/bin/httpd -DSSL
> > nobody   29975  0.3  2.6 134120 55116 ?      S    Jul22   2:42
> > /usr/local/apache/bin/httpd -DSSL
> > nobody   29976  0.3  2.5 131744 52484 ?      S    Jul22   2:43
> > /usr/local/apache/bin/httpd -DSSL
> > date
> > Sun Jul 23 00:08:41 PDT 2006
> > For example say a June month process, How do i recognize that using ps command
>
> Try this for a list of PIDs of processes started in June:
> $ ps uax | awk '$9 ~ /^Jun/ { print $2 }'
>
> Paul.
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>

Thanks Paul :)

Kaushal




More information about the fedora-list mailing list