Originally Posted by loginagain
These work in interactive mode. How about batch mode under redhat?
You cannot use ordering options from the command line, but you can use a workaround to accomplish this.
- Start top (normal mode),
- set order (To order by memory: O n <enter>
- write config file (W
- quit top
file is now present in your home directory, which will be read when using batch mode.
Possible downside: This .toprc file is always read when using top.....