[vdr] Re: master-timer (process_summary.pl) and vdr-1.3.x ?

Gregoire Favre gregoire.favre at gmail.com
Wed Dec 28 01:22:43 CET 2005


On Wed, Dec 28, 2005 at 01:19:45AM +0100, Gregoire Favre wrote:
> Hello again,
> 
> it was a problem with the previous script : it leave "/" which have some
> problem... this one is better :

Time to go to bed... here's the correct one :

#!/bin/bash

while [ $# -ge 1 ]; do
T=`cat $1 | grep "^T"|sed -e "s/^T //"`
S=`cat $1 | grep "^S"|sed -e "s/^S //"`
t=`echo $T|wc -w`
s=`echo $S|wc -w`
if [ ! $t -eq 0 ] && [ ! $s -eq 0 ]; then
	echo "$T"\|"$S" | sed -e "s/\//\-/g" >> /etc/master-timer/done
	echo $1 good EPG
else
	echo $1 -en '\E[01;31m'"\033[1mbad\033[0m" EPG
fi
shift
done
sort /etc/master-timer/done | uniq -i > /etc/master-timer/done.sorted
mv /etc/master-timer/done.sorted /etc/master-timer/done
if [ -e /etc/master-timer/done.dat ]; then
rm  /etc/master-timer/done.dat
fi

-- 
	Grégoire FAVRE



More information about the vdr mailing list