Playtimer.sh

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(Scripts != Skripte)
Zeile 1: Zeile 1:
 
Skript für den [[timercmds-patch]].
 
Skript für den [[timercmds-patch]].
  
{{Box Datei| $PATH/playtimer.sh |
+
{{Box Datei | [[Struktur|$PATH]]/playtimer.sh |
 
<pre>
 
<pre>
 
#!/bin/sh
 
#!/bin/sh

Version vom 22. April 2006, 03:18 Uhr

Skript 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 $VDRCONFIG/timercmds.conf:
# folgende zeile in die $VDRCONFIG/timercmds.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