RE: sort "top" output and then save to file
- From: "Paul Copeland" <PCopeland@xxxxxxxxxxxxxxx>
- Date: Mon, 28 Apr 2008 13:22:21 -0700
The resemblance in the output between ps and top is uncanny ;)
-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Genti Hila
Sent: Monday, April 28, 2008 1:21 PM
To: General Red Hat Linux discussion list
Subject: Re: sort "top" output and then save to file
I thought about it but since I am more familiar with top thought maybe
top would do such a job as well.
On Mon, Apr 28, 2008 at 4:13 PM, Paul Copeland
<PCopeland@xxxxxxxxxxxxxxx>
wrote:
Use ps command. Get the columns and sort you want and redirect thecommand:
output - Assumming you want a snapshot.
-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Genti Hila
Sent: Monday, April 28, 2008 1:12 PM
To: redhat-list@xxxxxxxxxx
Subject: sort "top" output and then save to file
I am trying to save all the processes into a file by using top
top -cSb n 1 > proc.txt
It works fine but I want to sort it descending by the amount of memory
each proccess takes (descending).problem.
I know how to do that interactively but how can i do when I run it as
a batch and save the output to a file.
I need to see some program that I think has some memory leaking
----
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- References:
- sort "top" output and then save to file
- From: Genti Hila
- RE: sort "top" output and then save to file
- From: Paul Copeland
- Re: sort "top" output and then save to file
- From: Genti Hila
- sort "top" output and then save to file
- Prev by Date: Re: sort "top" output and then save to file
- Next by Date: RE: sort "top" output and then save to file
- Previous by thread: Re: sort "top" output and then save to file
- Next by thread: RE: sort "top" output and then save to file
- Index(es):
Relevant Pages
|
|