Created attachment 378537 [details] patch to add -m option to top.c Description of problem: We need to be able to capture output from 'top' in batch mode, but sort the processes via memory consumption. Currently this option is only available in interactive mode via Shift-M Version-Release number of selected component (if applicable): 3.2.7 Additional info: Please mark this as a feature request if that is appropriate. I'm attaching a patch to the procps-3.2.7 SRPM that would add a "-m" option that would automatically sort by memory usage. It would be great if this type of option could be added to this, as well as the RHEL4 package as well.
hello Matt, thanks for the patch. if procps gets into next rhel update, we will add it
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2011-1497.html