PDA

View Full Version : cron log


dsshoser
09-26-2002, 06:49 PM
I have cron running
mvchannels and noppv run nicely
crontab looks like this

# m h dom mon dow command
20 * * * * /tvbin/mvchannels.tcl -file=/tvbin/channels.dat > /dev/null
30 * * * * /tvbin/noppv.tcl > /dev/null


I thought it might be a good idea to delete the log as it will fill up.
so I added
01 **** rm /var/hack/cron/log

However once the log is removed cron does not seem to be scheduling. Sometimes the TiVo will even reset.

Can this log file be deleted in a way that cron can handle?
Can the cron process be killed?
Perhaps during daily call, kill cron, remove log then start cron?
Or is it not an issue, will cron wrap the log at a certain size?

superzap
09-26-2002, 08:55 PM
Just make the cron log a null file and you will never have to worry about it again. See post here ===> http://dealdatabase.com/forum/showthread.php?s=&postid=60079#post60079

dsshoser
09-26-2002, 11:08 PM
thanks superzap

mknod -m666 /var/hack/cron/log c 1 3


will do the trick ;)

should have clued into that... just like the null logs hack...

genericuser
09-27-2002, 04:09 PM
Hmmm.... What cron are you using?

I have the same line you have in my crontab and I have no problems with it crashing when the log file is killed.

dsshoser
09-29-2002, 01:49 PM
Vixie Cron 3.0pl1 for TiVo