Server recording with SVDRP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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





[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux