The sum of the amount of memory consumed by the process
# / bin/bash!
Sum=0
For mem in `ps aux | awk'{print $6}'| grep-v 'RSS' `
Do
Sum=$ [$sum+$mem]
Done
Echo "The total memory is $sum"k"
# / bin/bash!
Sum=0
For mem in `ps aux | awk'{print $6}'| grep-v 'RSS' `
Do
Sum=$ [$sum+$mem]
Done
Echo "The total memory is $sum"k"