So resources are low, and I want to send myself email of the current resource hogs. I used
top -b | mail monitor@domain.com
but this process is forking and I don't want another process to be starting since I am low on resources. Then how do I set up a monitor without forking another process? I guess the only other process I would have to start might be that of a script itself. Right now, I am reading some C & Perl socket programming hoping some answers pop up.
thanks
Caspa
top -b | mail monitor@domain.com
but this process is forking and I don't want another process to be starting since I am low on resources. Then how do I set up a monitor without forking another process? I guess the only other process I would have to start might be that of a script itself. Right now, I am reading some C & Perl socket programming hoping some answers pop up.
thanks
Caspa