Rwrapper.sh
Aus VDR Wiki
Version vom 20. November 2004, 18:46 Uhr von 213.6.81.75 (Diskussion)
#!/bin/sh # # 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 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/local/bin/noad && { /usr/local/bin/noad nice --background \ --jumplogo \ --ac3 \ --overlap \ --OSD \ --statisticfile=/var/log/noadstat "$@" } ;; edited) echo "Edited recording $2" ;; *) echo "ERROR: unknown state: $2" ;; esac