How to determine cpu&memory percentage usage per user

Using HP-UX v11

Need to monitor cpu and memory usage, total for system and separately for each user in command-line mode.

Found out next ways to monitor total cpu usage under hp-ux:
1) vmstat, also shows free memory
2) sar -M

ps -eo user,pcpu - does not work, means 'user-defined format' of columns is not possible.

I'm newbie in *nix systems, and have no person to consult.
Spent a lot of time searching solutions, but no satisfied results currently. Need help.

Do you know about glance? Try the man pages for glance

Thanks for help.

I have found info about glance. But in my configuration it is not possible to use glance. I'm limited in privileges. All i can do is to execute commands or run perl scripts under limited users.

Maybe there are other ways. Still searching for available solutions.

glance can be run by non-root users.

Solution was simple as posible. But as i say before i'm newbie, So... :rolleyes:

UNIX95= ps -eo "user,pcpu,vsz"
plus some awk routine.