WAS
asked on
Check the user quota, if it excceds send email to user accounts
please provide me a simple bash script which will check the user quota, if it exceeds more then 250mb, then it will trigger an email to user accounts --> webadmin, aa12erp and aa13nbc
$ sudo -u penn quota
Disk quotas for user penn (uid 1001734):
Filesystem blocks quota limit grace files quota limit grace
/dev/01
45800 200000 3000000 25 0 0
]$ uname -a
Linux test012.6.9-89.0.23. #1 SMP Fri Mar 5 18:01:22 EST 2010 i686 i686 i386 GNU/Linux
i am going to setup a cronjob to excute this shell script every one hour
$ sudo -u penn quota
Disk quotas for user penn (uid 1001734):
Filesystem blocks quota limit grace files quota limit grace
/dev/01
45800 200000 3000000 25 0 0
]$ uname -a
Linux test012.6.9-89.0.23. #1 SMP Fri Mar 5 18:01:22 EST 2010 i686 i686 i386 GNU/Linux
i am going to setup a cronjob to excute this shell script every one hour
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER