LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Workarea Issue - - Notify user with status (https://www.linuxquestions.org/questions/linux-newbie-8/workarea-issue-notify-user-with-status-716493/)

sahil.jammu 04-02-2009 10:59 PM

Workarea Issue - - Notify user with status
 
Hi Friends,

I needed some inputs on this, I am having a system set up with 8 users, all using common workarea and having their email addresses as –

user1@abc.com , user2@abc.com etc etc


Now I want to keep track of data usage of each user. Which I can check by du --max-depth=1 -h
This command does a complete traversal and gives details of all the user specific space usage and also total usage.

Now is there is some way out where we can directly email user with status on this particular date, or some kind of auto email send to user moment he crosses critical mark and reaches towards quota usage.
For example – All users on one particular day should get an email about their status usage.

Kindly provide your inputs.

THnx in advance.

Cheers,
Sahil

TB0ne 04-03-2009 08:24 AM

Quote:

Originally Posted by sahil.jammu (Post 3496789)
Hi Friends,

I needed some inputs on this, I am having a system set up with 8 users, all using common workarea and having their email addresses as –

user1@abc.com , user2@abc.com etc etc


Now I want to keep track of data usage of each user. Which I can check by du --max-depth=1 -h
This command does a complete traversal and gives details of all the user specific space usage and also total usage.

Now is there is some way out where we can directly email user with status on this particular date, or some kind of auto email send to user moment he crosses critical mark and reaches towards quota usage.
For example – All users on one particular day should get an email about their status usage.

Yes...write a script to run that command and pipe it into sendmail, to the various users on the system. Put the script in CRON to run whenever you'd like.


All times are GMT -5. The time now is 11:15 PM.