Search FAQ...
Terminate after 30 days
Table of Contents
bash <<EOF
find /var/cpanel/suspended/ -mtime +30 > /root/autoterminate.txt
cut -d '/' -f5 /root/autoterminate.txt
echo "Users to remove"
cut -d '/' -f5 /root/autoterminate.txt > /root/auto.txt
for i in \`cat /root/auto.txt\`; do /scripts/removeacct -y \$i; done
EOF