Current Path : /proc/3/task/3/cwd/proc/self/root/proc/3/root/opt/zabbix_scripts/ |
Current File : //proc/3/task/3/cwd/proc/self/root/proc/3/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