Code:
crontab -e
30 8 * * * /home/pal/cleaner
Code:
crontab -l
30 8 * * * /home/pal/cleaner
Code:
#!/bin/sh
# cleanup
cd /var/log
cat /dev/null > messages
cat /dev/null > wtmp
cat /dev/null > cron
cat /dev/null > dmesg
cat /dev/null > maillog
cat /dev/null > Xorg.0.log
cat /dev/null > anaconda.log
cat /dev/null > anaconda.ifcfg.log
cat /dev/null > anaconda.syslog
cat /dev/null > anaconda.xlog
cat /dev/null > auth.log
cat /dev/null > btmp
cat /dev/null > boot.log
cat /dev/null > dracut.log
cat /dev/null > last.log
cat /dev/null > messages
cat /dev/null > ntp.log
cat /dev/null > mount.today
cat /dev/null > ipfw.today
cat /dev/null > security
cat /dev/null > unbound.log
cat /dev/null > setuid.today
cat /dev/null > debug.log
cat /dev/null > dmesg.today
cat /dev/null > dmesg.yesterday
cat /dev/null > ipfw.yesterday
cat /dev/null > daemon.log
cat /dev/null > rinetd.log
cat /dev/null > utx.log
cat /dev/null > utx.lastlogin