Hi,
After logged your server through SSH with root privilege, follow the given steps to clear the domain logs every sunday.
step1:
vi /root/clear_log.sh
cd /usr/local/apache/domlogs
for i in $( ls )
echo > $i
done
#Note: press "Esc" key and type :wq and presss "enter" key to save the above contents.
step2:
chmod 700 /root/clear_log.sh
step3:
vi /var/spool/cron/root
#Note: add the following line at the bottom of this file.
* * * * 0 sh /root/clear_log.sh
#Note: press "
Esc" key and type :wq and presss "enter" key to save the above contents
.