aernan Posted August 26, 2013 Share Posted August 26, 2013 I found the karma.log in /tmp . After reboot the tmp file is removed. Does karma write it's findings anywhere that is not cleared on reboot? How do I modify karma to auto log rotate? Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted August 26, 2013 Share Posted August 26, 2013 If you want automatic backups, simply make a cron job that cats /tmp/karma.log to /root/karma.log.$(date) Quote Link to comment Share on other sites More sharing options...
aernan Posted September 8, 2013 Author Share Posted September 8, 2013 ok I looked around. There is not a classic crontab setup. There is a single file in /etc/crontab/root and it's empty. I tried putting some stuff into it but I'm not getting any response. SHELL=/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usb/usr/bin:/usb/usr/sbin HOME=/ # minute (0-59), # | hour (0-23), # | | day of the month (1-31), # | | | month of the year (1-12), # | | | | day of the week (0-6 with 0=Sunday). # | | | | | commands" # run-parts 10 * * * * root /bin/date > /tmp/test.txt Also I noticed that the system clock is reset every time the device is powered up. So that means the files would get overwritten using the /root/karma.log$(date) technique. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.