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.