[mythtv-users] Anyone using in crontab?

nospam312 nospam312 at gmail.com
Fri Dec 28 19:00:20 UTC 2007


> > Very confused now.
> > After adding "> /tmp/output.log 2>&1" everything works, if I remove it
> > it stops working again.  Does anyone have any idea why this is the
> > case?  output.log never contains anything.
> > I have added "/dev/null 2>&1" now to keep things tidy and everything
> > works but have no idea why adding this or the above makes it work.
> > Does anyone know why and when you need to add this type of statement
> > to a cronjob entry?

> That's a very good question. What is the _exact_ line you have in your crontab?

My cron entry is below.  If I remove the > and all that follows it
does not work.  If I leave the > and what follow in it works fine.

I used the predefined script available here
http://www.mythtv.org/wiki/index.php/Generatevideothumbs.pl - I have
just removed the user check at the beginning.  Using Mythbuntu 7.1.
Obviously the */2 (run every two minutes) is just for testing.

*/2 * * * * testuser /home/testuser/generatevideothumbs.pl > dev/null 2>&1


More information about the mythtv-users mailing list