I am trying to write a SAM component to show the memory used by a running service in Linux.
Anyone have a Perl or Python script to attempt this?
I did some googling but you need to specify PID numbers.
I want to do it using the service name, e.g. "sshd"
return $memoryused("sshd")