Playtimer.sh

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(M)
Zeile 8: Zeile 8:
 
#
 
#
 
# source: http://vdrportal.de/board/thread.php?threadid=33778
 
# source: http://vdrportal.de/board/thread.php?threadid=33778
 +
#
 +
# add this line to your epgsearchcmds.conf:
 +
# folgende zeile in die epgsearchcmds.conf eintragen:
 +
#
 +
# Play timer : /usr/local/bin/playtimer.sh
  
PATH=$PREFIX/bin:$PREFIX/sbin:$PATH
+
if pidof atd >/dev/null ; then
 
+
    (
at now <<EOT
+
if [ "$8" -gt 0 ] ; then
svdrpsend.pl -p ${VDR_PORT:-2001} LSTR >/dev/null
+
    echo "svdrpsend.pl -p ${VDR_PORT:-2001} LSTR >/dev/null"
if [ "$8" -gt 0 ] ; then
+
            echo "svdrpsend.pl -p ${VDR_PORT:-2001} PLAY \"$8\" >/dev/null"
    svdrpsend.pl -p ${VDR_PORT:-2001} PLAY $8 >/dev/null
+
else
 +
    echo "svdrpsend.pl -p ${VDR_PORT:-2001} MESG "$"Error while accesing recording"" ... >/dev/null"
 +
fi
 +
    ) | at now
 
else
 
else
     svdrpsend.pl -p ${VDR_PORT:-2001} MESG "Error while accessing recording..." >/dev/null
+
     echo $"Jobmanager (atd) is not running" ...
 
fi
 
fi
EOT
 
 
</pre>
 
</pre>
 
}}
 
}}
  
 
[[Kategorie:Scripts]]
 
[[Kategorie:Scripts]]

Version vom 17. Januar 2006, 16:23 Uhr

Script für den timercmds-patch.

Datei
$PATH/playtimer.sh
#!/bin/sh
#
# playtimer.sh
#
# source: http://vdrportal.de/board/thread.php?threadid=33778
#
# add this line to your epgsearchcmds.conf:
# folgende zeile in die epgsearchcmds.conf eintragen:
#
# Play timer : /usr/local/bin/playtimer.sh

if pidof atd >/dev/null ; then
    (
	if [ "$8" -gt 0 ] ; then
	    echo "svdrpsend.pl -p ${VDR_PORT:-2001} LSTR >/dev/null"
            echo "svdrpsend.pl -p ${VDR_PORT:-2001} PLAY \"$8\" >/dev/null"
	else
	    echo "svdrpsend.pl -p ${VDR_PORT:-2001} MESG "$"Error while accesing recording"" ... >/dev/null"
	fi
    ) | at now
else
    echo $"Jobmanager (atd) is not running" ...
fi