[vdr] Server recording with SVDRP

Uwe Ortner uwe.ortner at villa-flora.info
Tue Dec 27 18:46:20 CET 2005


> Use the following SVDRP-command to deactivate the timer first:
> 
> MODT <timer-number> off
> 
> /Lars
> 

Made a little shell script for this:
-----------
SCMD="/usr/lib/vdrdevel/svdrpsend.pl"
SPORT="2001"
SCLT="localhost"
SSRV="servername"
SDIR="SERVER~"

IFS="
"
for recording in $($SCMD -d $SCLT -p $SPORT LSTT | grep "^250"|sed
"s/250.//g" )do
   IFS=":"
   check=($recording)
   #no=$(echo ${check[0]} | awk '{print $1}')
   check[0]=$(echo ${check[0]} | awk '{print $2}')
   NEWSTRING="${check[0]}:${check[1]}:${check[2]}:${check[3]}:
${check[4]}:${check[5]}:${check[6]}:${SDIR}${check[7]}"
   $SCMD -d $SSRV -p $SPORT NEWT "$NEWSTRING"
   $SCMD -d $SCLT -p $SPORT MODT 1 off
   $SCMD -d $SCLT -p $SPORT DELT 1
done
-----------

Works, but needs further improvements, s.a. checking that server is able
to do the recording (if there are already recordings on the server)

If someone is interested ....

/uwe






More information about the vdr mailing list