Heray-Was-Here
Server : Apache
System : Linux vps37394.inmotionhosting.com 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User : jasonp18 ( 1000)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /opt/dedrads/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/dedrads/check_size
#!/bin/bash

### calculate account size ###
if [[ $1 != "" ]]; then
acct=$1
echo "Quota check shows the following: `quota $acct | awk '{ print
($2*1024)/1048576 }' | grep -v -P '^0$'`"
echo "Cpanel's Cache Data for $acct `cat /var/cpanel/repquota.cache|grep $acct |awk '{print $3/(1048576/1000)"M"}'`"
echo "Database Information:"
diff -y <(ls -d /var/lib/mysql/`echo -n $acct`_*/ | cut -d'/' -f5) <(du -h /var/lib/mysql/`echo -n $acct`_*/)

else
echo "Usage is: check_size accountname"
fi

Hry