Rwrapper.sh

Aus VDR Wiki
Version vom 30. Oktober 2004, 10:49 Uhr von 81.56.214.240 (Diskussion)

(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche
  1. !/bin/sh
  2. an example script for use with the '-r' option could look like this:

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

NOADOPT="nice --background --jumplogo --ac3 --overlap --OSD --statisticfile=/var/log/noadstat"

case "${1}" in

   before)
       echo "Before recording ${2}"
       test -x "/etc/vdr/scripts/clipinc/vdrrecinfo.pl" && {
           /etc/vdr/scripts/clipinc/vdrrecinfo.pl "${@}"
       }
       ;;
   after)
       echo "After recording ${2}"
       test -x "/usr/bin/noad" && {
           /usr/bin/noad "${NOADOPT}" "${@}"
       }
       ;;
   edited)
       echo "Edited recording ${2}"
       ;;
   *)
       echo "ERROR: unknown state: ${2}"
       ;;

esac