Ulrich Windl wrote:
> Dennis Handly <dhandly@convex.hp.com> writes:
>
>> newa wrote:
>>> But hp-ux top does not do that. So what can you do on hp-ux to
>>> find the process that uses the most memory?
>> You can send the output to a file and then sort it. You would have problems
>> with the M and K suffix though.
>>
>> $ top -f top.out -n 10000 -d 1
>> $ sort -n -k7,7 top.out
>
> Maybe someday HP ports the Linux version to HP-UX (where you can select the
> sort field interactively)...
This works on all SysV-compatible systems:
ps -elf | sort -n -k 10,10
And for HP-UX you should bookmark
http://hpux.connect.org.uk/
Search for Package name top,
download the top-3.6.1 package for your platform,
and its dependent packages,
gunzip and
swinstall -s /absolute/path/to/package.depot \*
and start
/usr/local/bin/top -o size
provided it installs in /usr/local/bin.
--
Michael Tosch @ hp : com