linuxhelp: exec ps

Old posts that have not been replied to for several years.
Locked
r
ribot
Voice
Posts: 17
Joined: Mon Sep 08, 2003 4:01 pm
Location: eggbeer
Contact:

linuxhelp: exec ps

Post by ribot »

i have seen in a script where they use:

exec ps --format=rss --noheading $botpid

to get the memory that the bot uses. I wonder how i can do something similar to get 1) the memory usage of bash, 2) total memory usage of shell computer, 3) total processor usage of shell computer.
Locked