Clipinc.sh

Aus VDR Wiki
Version vom 11. November 2004, 14:49 Uhr von 213.6.81.154 (Diskussion)

(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche
  1. !/bin/sh
# sample script for clipinc
#
# need: atd

case "${1}" in
    start)
        test -s "${2}/recinfo.conf" || {
            echo "--------------------------"
            echo  "recinfo.conf not found..."
            echo "--------------------------"
            exit 1
        }
        test -d /etc/vdr/scripts/clipinc || {
            echo "--------------------------"
            echo "/etc/vdr/scripts/clipinc not found..."
            echo "--------------------------"
            exit 1
        }
        at now <<EOF
        cd /etc/vdr/scripts/clipinc
        ./clipinc.pl "${2}"
EOF
        ;;
esac