Playtimer.sh
Aus VDR Wiki
Version vom 29. August 2005, 02:33 Uhr von 84.186.37.41 (Diskussion)
Script für den timercmds-patch.
#!/bin/sh # # playtimer.sh # # source: http://vdrportal.de/board/thread.php?threadid=33778 PATH=$PREFIX/bin:$PREFIX/sbin:$PATH I18N=${SOURCEDIR:?}/VDR/i18n.c LANGUAGE=( `grep -s ^OSDLanguage ${VDRCONFIG:?}/setup.conf` ) at now <<EOT svdrpsend.pl -p ${VDR_PORT:-2001} LSTR >/dev/null if [ "$8" -gt 0 ] ; then svdrpsend.pl -p ${VDR_PORT:-2001} PLAY $8 >/dev/null else MESG="$(grep -sA ${LANGUAGE[2]} '"Error while accessing recording!",$' $I18N | tail -n1 | cut -d'"' -f2)" svdrpsend.pl -p ${VDR_PORT:-2001} MESG "\${MESG:-Error while accessing recording!}" >/dev/null fi EOT