Current Path : /proc/self/root/opt/zabbix_scripts/ |
Current File : //proc/self/root/opt/zabbix_scripts/checkUserSymlinkCounts.sh |
#!/bin/bash declare -A cpanelUsersList=$(whmapi1 list_users | grep -E '\ *\-\ ' | awk '{print $2}' | grep -vE '^root$') for cpanelUser in ${cpanelUsersList[@]} do echo $cpanelUser `find /home/${cpanelUser}/public_html/ -type l | wc -l` | grep -vE '\ 0$' done | sort -g -r -k 2