Auto clear log files.
cd to the root folder.
Now create a file call clearlog.sh
clearlog.sh
copy & past following lines
/bin/date > .zsub1x/debug.log
/bin/date > .zsub1x1/debug.log
Now hit control X
to exit the file, Then hit Y
to save and hit enter
to exit.
give executable permission to clearlog.sh
chmod +x clearlog.sh
Now edit crontabe
.
crontab -e
past the follwoing
0 0 */2 * * ~/clearlog.sh
I think it will clear the log from debug.log every 2nd day ( if I am not mistakennn )