[mythtv-users] 0byte check suggestion

Dave Richardson mythtv at derdev.com
Mon Dec 21 13:22:04 UTC 2009

> From time to time I get a problem with my machine and it starts
> recording 0 byte files until I sort the problem out. What would be an
> easy way to check for 0 byte files with a cron job so I can get a
> email sent to me to alert me.
> I considered scrapping the Recorded programs page but it seems a waste
> of resources to get myth to generate that every few minutes.
> Any suggestions of the best way to check for 0 byte files ?
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
I won't comment on the merits of what you want to do, since I don't
understand why you want to do it...  however, from a linux perspective you
would find a zero byte file this way

find . -size 0

and you would find and delete this way

find . -size 0 -exec rm -f {} \;


More information about the mythtv-users mailing list