Unix Bash Script - Monitoring User Home Directory Growth -
I am trying to create a script that will increase the value of 100 MB for all non-administrator users home directories / home Under a 20-minute period monitor, and if this happens send an email to the root. The email must contain a list of users who were found to be in violation.
I'm new to Unix, and I can easily write pseudo code for it, but translating it into code is a problem I'm thinking this will be something like this:
for (under all folders / home) {- Store folder size in one variable - store current timestamp in a variable - when time = 20 minimum, get new folder size and compare (new Size - old size> 100+) - abusive user Send an email notification to route with the name (exit)}
Any help would be greatly appreciated! I'm really struggling with it.
You need to get an order
It was not difficult to find, was it?
This can help you know how to deal with
Comments
Post a Comment