I have a couple of users on my WHM/cPanel and their trash folders need to be monitored and emptied every midnight. At the moment they are growing fast and I don't want to have to monitor them myself:
216992 MB /home/userone/.trash/[cont
11138 MB /home/usertwo/.trash/[cont
I use cPanel and know where to go into the WHM to set such cronjobs. I know how to set the frequency and other settings but what I dont' know is how to frame the cron job query itself as I don't know the syntax.
I asked the cPanel team to help me but they pointed me to their knowledgebase which is practically useless as it has hardly any information: https://documentation.cpanel.net/display/ALD/Cron+Jobs#CronJobs-Addacronjob
I would like to know how to write the two separate cronjobs that I need, each programmed to emptying these two folders midnightly.
thanks in advance