|
|||
|
That does work, through SSH and WHM... it will update the numbers correctly, but it won't continue to.
Should I upload a 50MB file, the server won't increase space used until I run that script again.. Any idea what could be causing this? ~Weed |
|
|||
|
Quote:
|
|
|||
|
Do these steps after running /scripts/fixquotas :
1. touch /var/tmp/repquota.txt (replace /var/tmp and repquota.txt with any directory and file name of your choice; make sure the file path matches the one you put in the crontab). The touch command creates an empty file. 2. Put this at the end of /etc/crontab: 0-59/5 * * * * root repquota /home > /var/tmp/repquota.txt 2> /dev/null & Save the changes in the crontab and your quotas will be updated every 5 minutes. You can change the frequency if you want. For more info on crontab type: man 5 crontab The above assumes your users are in /home. This is the tidied up code (copy and paste): Code:
touch /var/tmp/repquota.txt pico -w /etc/crontab 0-59/5 * * * * root repquota /home > /var/tmp/repquota.txt 2> /dev/null & Save the changes! Last edited by goodmove; 02-25-2004 at 12:54 AM. |
|
|||
|
Quote:
Last edited by goodmove; 02-25-2004 at 12:46 AM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|