Rwrapper.sh
Aus VDR Wiki
(Unterschied zwischen Versionen)
(M) |
|||
Zeile 8: | Zeile 8: | ||
case "${1}" in | case "${1}" in | ||
before) | before) | ||
− | echo "Before recording $ | + | echo "Before recording $2" |
− | test -x | + | test -x /etc/vdr/scripts/clipinc/vdrrecinfo.pl && { |
− | /etc/vdr/scripts/clipinc/vdrrecinfo.pl "$ | + | /etc/vdr/scripts/clipinc/vdrrecinfo.pl "$@" |
} | } | ||
;; | ;; | ||
after) | after) | ||
− | echo "After recording $ | + | echo "After recording $2" |
− | test -x | + | test -x /usr/local/bin/noad && { |
/usr/local/bin/noad nice --background \ | /usr/local/bin/noad nice --background \ | ||
--jumplogo \ | --jumplogo \ | ||
Zeile 21: | Zeile 21: | ||
--overlap \ | --overlap \ | ||
--OSD \ | --OSD \ | ||
− | --statisticfile=/var/log/noadstat "$ | + | --statisticfile=/var/log/noadstat "$@" |
} | } | ||
;; | ;; | ||
edited) | edited) | ||
− | echo "Edited recording $ | + | echo "Edited recording $2" |
;; | ;; | ||
*) | *) | ||
− | echo "ERROR: unknown state: $ | + | echo "ERROR: unknown state: $2" |
;; | ;; | ||
esac | esac | ||
</pre> | </pre> |
Version vom 30. Oktober 2004, 13:24 Uhr
#!/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