Re: cron jobs + (some?) output
Maurits van Rees wrote:
Yeah, now that you mention it, I also don't think "mplayer -command
-options blah blah" is going to work either.
On Tue, Dec 07, 2004 at 05:12:31PM -0500, Ben Russo wrote:
3 4 * * * rm -f /var/log/mplayer.log; mv /var/log/mplayer.log
/var/log/mplayer.log.yesterday; mplayer -command -options blah blah >
This command will create a new log every day, and keep yesterdays log
too, but will lose all older logs.
First you remove /var/log/mplayer.log; then you move the now
non-existing /var/log/mplayer.log to mplayer.yesterday... I don't
think that's going to work. :)
I suggest making it "rm -f /var/log/mplayer.yesterday" or skipping
that part completely.