#!/bin/sh OLD=$(cat .xmltv/oldday) DATE=$(date +%s) DIF=$(expr '(' $DATE - $OLD ')' / 86400) if [ $DIF = 0 ] ; then exit