Cpanel killacct script- kill by domain?
Someone posted a line of code that terminates mass accounts using a txt file like this:for user in `cat mylist.txt`; do /scripts/killacct $user; done
My question is, I have a list of the domains I want to terminate, is there anyway to modify the script to kill by domain instead of user? Or is there a quick way to gather the usernames with the list of domain names? I tried changing user to domain in the code, but doesnt work.
Any help is appreciated.